diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-10-06 08:54:49 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-10-06 08:54:49 +0000 |
commit | c51bc4078de3529829b4ee0c20ed490af680c40d (patch) | |
tree | 52f450be13043b8070c1872d30c5de4be81fe279 /runit | |
parent | f4160c8703abe6ababd6915c656abecf4bfe92e5 (diff) | |
download | busybox-w32-c51bc4078de3529829b4ee0c20ed490af680c40d.tar.gz busybox-w32-c51bc4078de3529829b4ee0c20ed490af680c40d.tar.bz2 busybox-w32-c51bc4078de3529829b4ee0c20ed490af680c40d.zip |
chpst: fix vda's silly mistakes
Patch by Vladimir Dronnikov <dronnikov@gmail.ru>
git-svn-id: svn://busybox.net/trunk/busybox@16315 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'runit')
-rw-r--r-- | runit/chpst.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runit/chpst.c b/runit/chpst.c index da2f270e2..b26d62866 100644 --- a/runit/chpst.c +++ b/runit/chpst.c | |||
@@ -91,7 +91,7 @@ static void edir(const char *directory_name) | |||
91 | bb_perror_msg_and_die("read %s/%s", directory_name, /* was exiting 111 */ | 91 | bb_perror_msg_and_die("read %s/%s", directory_name, /* was exiting 111 */ |
92 | d->d_name); | 92 | d->d_name); |
93 | if (size == 0) { | 93 | if (size == 0) { |
94 | xsetenv(d->d_name, ""); | 94 | unsetenv(d->d_name); |
95 | continue; | 95 | continue; |
96 | } | 96 | } |
97 | buf[size] = '\n'; | 97 | buf[size] = '\n'; |
@@ -247,6 +247,7 @@ int chpst_main(int argc, char **argv) | |||
247 | //if (option_mask & 0x10000) OPT_nostdout = 1; // -1 | 247 | //if (option_mask & 0x10000) OPT_nostdout = 1; // -1 |
248 | //if (option_mask & 0x20000) OPT_nostderr = 1; // -2 | 248 | //if (option_mask & 0x20000) OPT_nostderr = 1; // -2 |
249 | } | 249 | } |
250 | argv += optind; | ||
250 | if (!argv || !*argv) bb_show_usage(); | 251 | if (!argv || !*argv) bb_show_usage(); |
251 | 252 | ||
252 | if (OPT_pgrp) setsid(); | 253 | if (OPT_pgrp) setsid(); |