You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
552 B

diff -up sudo-1.8.6p7/src/sudo.c.null_exception sudo-1.8.6p7/src/sudo.c
--- sudo-1.8.6p7/src/sudo.c.null_exception 2016-05-11 10:39:56.466888652 +0200
+++ sudo-1.8.6p7/src/sudo.c 2016-05-11 10:39:56.530887742 +0200
@@ -483,6 +483,9 @@ get_user_info(struct user_details *ud)
errorx(1, _("unable to allocate memory"));
ud->cwd = user_info[i] + sizeof("cwd=") - 1;
}
+ else {
+ errorx(1, _("unable to resolve current working directory"));
+ }
if ((cp = get_process_ttyname()) != NULL) {
user_info[++i] = fmt_string("tty", cp);