mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 21:38:05 +00:00
Only one space after a colon, not two, in printf's
This commit is contained in:
parent
0aad2d5afd
commit
0b9e318b75
8
check.c
8
check.c
@ -237,7 +237,7 @@ static int check_timestamp()
|
|||||||
|
|
||||||
if (sizeof(_PATH_SUDO_TIMEDIR) + strlen(user_name) + strlen(p) + 2 >
|
if (sizeof(_PATH_SUDO_TIMEDIR) + strlen(user_name) + strlen(p) + 2 >
|
||||||
sizeof(timestampfile)) {
|
sizeof(timestampfile)) {
|
||||||
(void) fprintf(stderr, "%s: path too long: %s/%s.%s\n", Argv[0],
|
(void) fprintf(stderr, "%s: path too long: %s/%s.%s\n", Argv[0],
|
||||||
_PATH_SUDO_TIMEDIR, user_name, p);
|
_PATH_SUDO_TIMEDIR, user_name, p);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
@ -245,7 +245,7 @@ static int check_timestamp()
|
|||||||
#else
|
#else
|
||||||
if (sizeof(_PATH_SUDO_TIMEDIR) + strlen(user_name) + 1 >
|
if (sizeof(_PATH_SUDO_TIMEDIR) + strlen(user_name) + 1 >
|
||||||
sizeof(timestampfile)) {
|
sizeof(timestampfile)) {
|
||||||
(void) fprintf(stderr, "%s: path too long: %s/%s\n", Argv[0],
|
(void) fprintf(stderr, "%s: path too long: %s/%s\n", Argv[0],
|
||||||
_PATH_SUDO_TIMEDIR, user_name);
|
_PATH_SUDO_TIMEDIR, user_name);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
@ -408,7 +408,7 @@ void remove_timestamp()
|
|||||||
|
|
||||||
if (sizeof(_PATH_SUDO_TIMEDIR) + strlen(user_name) + strlen(p) + 2 >
|
if (sizeof(_PATH_SUDO_TIMEDIR) + strlen(user_name) + strlen(p) + 2 >
|
||||||
sizeof(timestampfile)) {
|
sizeof(timestampfile)) {
|
||||||
(void) fprintf(stderr, "%s: path too long: %s/%s.%s\n", Argv[0],
|
(void) fprintf(stderr, "%s: path too long: %s/%s.%s\n", Argv[0],
|
||||||
_PATH_SUDO_TIMEDIR, user_name, p);
|
_PATH_SUDO_TIMEDIR, user_name, p);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
@ -416,7 +416,7 @@ void remove_timestamp()
|
|||||||
#else
|
#else
|
||||||
if (sizeof(_PATH_SUDO_TIMEDIR) + strlen(user_name) + 1 >
|
if (sizeof(_PATH_SUDO_TIMEDIR) + strlen(user_name) + 1 >
|
||||||
sizeof(timestampfile)) {
|
sizeof(timestampfile)) {
|
||||||
(void) fprintf(stderr, "%s: path too long: %s/%s\n", Argv[0],
|
(void) fprintf(stderr, "%s: path too long: %s/%s\n", Argv[0],
|
||||||
_PATH_SUDO_TIMEDIR, user_name);
|
_PATH_SUDO_TIMEDIR, user_name);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
2
sudo.c
2
sudo.c
@ -460,7 +460,7 @@ static void load_globals(sudo_mode)
|
|||||||
/* try as root... */
|
/* try as root... */
|
||||||
set_perms(PERM_ROOT, sudo_mode);
|
set_perms(PERM_ROOT, sudo_mode);
|
||||||
if (!getcwd(cwd, sizeof(cwd))) {
|
if (!getcwd(cwd, sizeof(cwd))) {
|
||||||
(void) fprintf(stderr, "%s: Can't get working directory!\n",
|
(void) fprintf(stderr, "%s: Can't get working directory!\n",
|
||||||
Argv[0]);
|
Argv[0]);
|
||||||
(void) strcpy(cwd, "unknown");
|
(void) strcpy(cwd, "unknown");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user