mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-04 08:15:15 +00:00
Some -Wall and kill some trailing spaces
This commit is contained in:
9
sudo.c
9
sudo.c
@@ -64,6 +64,7 @@
|
|||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <grp.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@@ -1021,8 +1022,8 @@ set_perms(perm, sudo_mode)
|
|||||||
|
|
||||||
if (setgid(pw->pw_gid)) {
|
if (setgid(pw->pw_gid)) {
|
||||||
(void) fprintf(stderr,
|
(void) fprintf(stderr,
|
||||||
"%s: cannot set gid to %d: ",
|
"%s: cannot set gid to %ld: ",
|
||||||
Argv[0], pw->pw_gid);
|
Argv[0], (long) pw->pw_gid);
|
||||||
perror("");
|
perror("");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
@@ -1043,8 +1044,8 @@ set_perms(perm, sudo_mode)
|
|||||||
|
|
||||||
if (setuid(pw->pw_uid)) {
|
if (setuid(pw->pw_uid)) {
|
||||||
(void) fprintf(stderr,
|
(void) fprintf(stderr,
|
||||||
"%s: cannot set uid to %d: ",
|
"%s: cannot set uid to %ld: ",
|
||||||
Argv[0], pw->pw_uid);
|
Argv[0], (long) pw->pw_uid);
|
||||||
perror("");
|
perror("");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user