1 |
jpp |
1.1 |
diff -up sudo-1.8.6p3/src/sudo.c.orig sudo-1.8.6p3/src/sudo.c |
2 |
|
|
--- sudo-1.8.6p3/src/sudo.c.orig 2015-11-23 18:19:45.051010282 +1000 |
3 |
|
|
+++ sudo-1.8.6p3/src/sudo.c 2015-11-23 18:19:57.795997701 +1000 |
4 |
|
|
@@ -482,6 +482,9 @@ get_user_info(struct user_details *ud) |
5 |
|
|
errorx(1, _("unable to allocate memory")); |
6 |
|
|
ud->cwd = user_info[i] + sizeof("cwd=") - 1; |
7 |
|
|
} |
8 |
|
|
+ else { |
9 |
|
|
+ errorx(1, _("unable to resolve current working directory")); |
10 |
|
|
+ } |
11 |
|
|
|
12 |
|
|
if ((cp = get_process_ttyname()) != NULL) { |
13 |
|
|
user_info[++i] = fmt_string("tty", cp); |
14 |
|
|
|