← Commit list

4e6ceb445

Denis Vlasenko
Denis Vlasenko
2006-10-06
FAILED Duration: 3s

Subject

chpst: fix vda's silly mistakes Patch by Vladimir Dronnikov

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

runit/chpst.c+2 -1
@@ -91,7 +91,7 @@ static void edir(const char *directory_name)
bb_perror_msg_and_die("read %s/%s", directory_name, /* was exiting 111 */
d->d_name);
if (size == 0) {
- xsetenv(d->d_name, "");
+ unsetenv(d->d_name);
continue;
}
buf[size] = '\n';
@@ -247,6 +247,7 @@ int chpst_main(int argc, char **argv)
//if (option_mask & 0x10000) OPT_nostdout = 1; // -1
//if (option_mask & 0x20000) OPT_nostderr = 1; // -2
}
+ argv += optind;
if (!argv || !*argv) bb_show_usage();
if (OPT_pgrp) setsid();