Handle getcwd() failure.

This commit is contained in:
Todd C. Miller
2010-07-14 14:17:56 -04:00
parent eccbde77da
commit 482f9cfc83

View 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 */