summaryrefslogtreecommitdiff
path: root/source3/client/smbmount.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/client/smbmount.c')
-rw-r--r--source3/client/smbmount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/client/smbmount.c b/source3/client/smbmount.c
index 18af824c1f..ec3f32bd36 100644
--- a/source3/client/smbmount.c
+++ b/source3/client/smbmount.c
@@ -72,7 +72,7 @@ static void daemonize(void)
signal( SIGTERM, exit_parent );
- if ((child_pid = fork()) < 0) {
+ if ((child_pid = sys_fork()) < 0) {
fprintf(stderr,"could not fork\n");
}
@@ -437,7 +437,7 @@ static void init_mount(void)
args[i++] = xstrdup(tmp);
}
- if (fork() == 0) {
+ if (sys_fork() == 0) {
if (file_exist(BINDIR "/smbmnt", NULL)) {
execv(BINDIR "/smbmnt", args);
fprintf(stderr,"execv of %s failed. Error was %s.", BINDIR "/smbmnt", strerror(errno));