openbsd-ports/net/samba/patches/patch-lib_smbrun_c
mbalmer 11815b2212 Update to Samba 3.0.25a.
See http://www.samba.org/samba/history/samba-3.0.25a.html for full details.

SECURITY:

This update fixes the following vulnerabilites:
CVE-2007-2444, CVE-2007-2446, CVE-2007-2447.
2007-05-28 20:03:01 +00:00

22 lines
615 B
Plaintext

$OpenBSD: patch-lib_smbrun_c,v 1.5 2007/05/28 20:03:01 mbalmer Exp $
--- lib/smbrun.c.orig Fri May 11 04:32:55 2007
+++ lib/smbrun.c Thu May 17 10:22:53 2007
@@ -178,7 +178,7 @@ static int smbrun_internal(const char *cmd, int *outfd
if (!newcmd) {
exit(82);
}
- execl("/bin/sh","sh","-c",newcmd,NULL);
+ execl("/bin/sh","sh","-c",newcmd,(void *)NULL);
}
/* not reached */
@@ -324,7 +324,7 @@ int smbrunsecret(const char *cmd, const char *secret)
}
#endif
- execl("/bin/sh", "sh", "-c", cmd, NULL);
+ execl("/bin/sh", "sh", "-c", cmd, (void *)NULL);
/* not reached */
exit(82);