svn commit: branches/busybox_scratch/libbb
aldot at busybox.net
aldot at busybox.net
Wed Jun 21 18:48:08 UTC 2006
Author: aldot
Date: 2006-06-21 11:48:06 -0700 (Wed, 21 Jun 2006)
New Revision: 15465
Log:
- use CONFIG_BUSYBOX_EXEC_PATH as before it one was broken by a recent revert.
- use xchdir() since all is invain if it fails there anyways, supposedly
Modified:
branches/busybox_scratch/libbb/vfork_daemon_rexec.c
Changeset:
Modified: branches/busybox_scratch/libbb/vfork_daemon_rexec.c
===================================================================
--- branches/busybox_scratch/libbb/vfork_daemon_rexec.c 2006-06-21 18:43:53 UTC (rev 15464)
+++ branches/busybox_scratch/libbb/vfork_daemon_rexec.c 2006-06-21 18:48:06 UTC (rev 15465)
@@ -33,7 +33,7 @@
setsid();
if (!nochdir)
- chdir("/");
+ xchdir("/");
if (!noclose && (fd = open(bb_dev_null, O_RDWR, 0)) != -1) {
dup2(fd, STDIN_FILENO);
@@ -44,7 +44,7 @@
}
vfork_args = xcalloc(sizeof(char *), argc + 3);
- vfork_args[a++] = "/bin/busybox";
+ vfork_args[a++] = CONFIG_BUSYBOX_EXEC_PATH;
while(*argv) {
vfork_args[a++] = *argv;
argv++;
More information about the busybox-cvs
mailing list