diff options
author | Pascal Bellard <pascal.bellard@ads-lu.com> | 2012-06-12 13:21:02 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-06-12 13:21:02 +0200 |
commit | 70fc8c17e2d032f34162f7abc3e65a67c0ff272a (patch) | |
tree | b2a4b1b2f6d52b01056e4601aca1c676e7f0f80f /networking | |
parent | 588e284f53da2dc5c58f3d1b9efacd6e9061baf1 (diff) | |
download | busybox-w32-70fc8c17e2d032f34162f7abc3e65a67c0ff272a.tar.gz busybox-w32-70fc8c17e2d032f34162f7abc3e65a67c0ff272a.tar.bz2 busybox-w32-70fc8c17e2d032f34162f7abc3e65a67c0ff272a.zip |
su: do not change to home dir unless -l
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r-- | networking/httpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index 12218a0a3..a942794f5 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -1414,7 +1414,7 @@ static void send_cgi_and_exit( | |||
1414 | if (script != url) { /* paranoia */ | 1414 | if (script != url) { /* paranoia */ |
1415 | *script = '\0'; | 1415 | *script = '\0'; |
1416 | if (chdir(url + 1) != 0) { | 1416 | if (chdir(url + 1) != 0) { |
1417 | bb_perror_msg("chdir(%s)", url + 1); | 1417 | bb_perror_msg("can't change directory to '%s'", url + 1); |
1418 | goto error_execing_cgi; | 1418 | goto error_execing_cgi; |
1419 | } | 1419 | } |
1420 | // not needed: *script = '/'; | 1420 | // not needed: *script = '/'; |