openbsd-ports/net/samba/patches/patch-web_startstop_c
sthen 77128a8fa6 update Samba to 3.5.2, most of the work done by Ian McWilliam
Note that the default passdb backend has been changed to 'tdbsam'.
See /usr/local/share/doc/samba/README.OpenBSD (or files/README.OpenBSD)
for more information and instructions for people who wish to convert an
existing smbpasswd-based installation.
2010-04-26 17:31:57 +00:00

31 lines
884 B
Plaintext

$OpenBSD: patch-web_startstop_c,v 1.3 2010/04/26 17:31:57 sthen Exp $
--- web/startstop.c.orig Wed Jun 3 21:20:01 2009
+++ web/startstop.c Wed Jun 3 21:21:18 2009
@@ -37,7 +37,7 @@ void start_smbd(void)
if (asprintf(&binfile, "%s/smbd", get_dyn_SBINDIR()) > 0) {
become_daemon(true, false);
- execl(binfile, binfile, "-D", NULL);
+ execl(binfile, binfile, "-D", (void *)NULL);
}
exit(0);
}
@@ -57,7 +57,7 @@ void start_nmbd(void)
if (asprintf(&binfile, "%s/nmbd", get_dyn_SBINDIR()) > 0) {
become_daemon(true, false);
- execl(binfile, binfile, "-D", NULL);
+ execl(binfile, binfile, "-D", (void *)NULL);
}
exit(0);
}
@@ -77,7 +77,7 @@ void start_winbindd(void)
if (asprintf(&binfile, "%s/winbindd", get_dyn_SBINDIR()) > 0) {
become_daemon(true, false);
- execl(binfile, binfile, NULL);
+ execl(binfile, binfile, (void *)NULL);
}
exit(0);
}