2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-30 05:48:18 +00:00
This commit is contained in:
Todd C. Miller 1998-04-06 03:21:42 +00:00
parent 3b1be424aa
commit 7f4e5240cf

2
sudo.c
View File

@ -462,7 +462,7 @@ static void load_globals(sudo_mode)
if (!getcwd(cwd, sizeof(cwd))) {
/* try as root... */
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",
Argv[0]);
(void) strcpy(cwd, "unknown");