]> granicus.if.org Git - sudo/commitdiff
Handle getcwd() failure.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 14 Jul 2010 18:17:56 +0000 (14:17 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 14 Jul 2010 18:17:56 +0000 (14:17 -0400)
plugins/sudoers/sudoers.c

index 5b1dcbc226b9c858b00710634825c7c1e16d504d..356e2ef52a56decf8e9b2b8449229304ba63fb17 100644 (file)
@@ -1327,6 +1327,8 @@ deserialize_info(char * const settings[], char * const user_info[])
            continue;
        }
     }
+    if (user_cwd == NULL)
+       user_cwd = "unknown";
     if (user_tty == NULL)
        user_tty = "unknown"; /* user_ttypath remains NULL */