summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-03-17 00:04:18 +0000
committerAndrew Tridgell <tridge@samba.org>1998-03-17 00:04:18 +0000
commit98034962747589c8066d29f1884ca06974aeb1f1 (patch)
treeeafe080a283fd4f047036ff0588488617503c5e0
parent15cf7db4c94042a512864a07437689a19609acbe (diff)
downloadsamba-98034962747589c8066d29f1884ca06974aeb1f1.tar.gz
samba-98034962747589c8066d29f1884ca06974aeb1f1.tar.bz2
samba-98034962747589c8066d29f1884ca06974aeb1f1.zip
fixed call to execl() to get argv[0] right (thanks to Herb)
(This used to be commit aaa4db4de3eb16d50d0263c8e69ace6217355f11)
-rw-r--r--source3/web/startstop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/web/startstop.c b/source3/web/startstop.c
index e60b13ae66..5f7d2e6206 100644
--- a/source3/web/startstop.c
+++ b/source3/web/startstop.c
@@ -41,7 +41,7 @@ void start_smbd(void)
become_daemon();
- execl(binfile, "-D", NULL);
+ execl(binfile, "smbd", "-D", NULL);
exit(0);
}
@@ -62,7 +62,7 @@ void start_nmbd(void)
become_daemon();
- execl(binfile, "-D", NULL);
+ execl(binfile, "nmbd", "-D", NULL);
exit(0);
}