summaryrefslogtreecommitdiff
path: root/libbb/vfork_daemon_rexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/vfork_daemon_rexec.c')
-rw-r--r--libbb/vfork_daemon_rexec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c
index 59a2287..7e4b0c0 100644
--- a/libbb/vfork_daemon_rexec.c
+++ b/libbb/vfork_daemon_rexec.c
@@ -33,7 +33,7 @@ void vfork_daemon_rexec(int nochdir, int noclose,
setsid();
if (!nochdir)
- chdir("/");
+ xchdir("/");
if (!noclose && (fd = open(bb_dev_null, O_RDWR, 0)) != -1) {
dup2(fd, STDIN_FILENO);
@@ -44,7 +44,7 @@ void vfork_daemon_rexec(int nochdir, int noclose,
}
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++;