ports/net/samba4/files/patch-source3__smbd__quotas.c
Timur I. Bakeyev a5ced76f06 Upgrade port to the 4.0.12 version, closing CVE-2013-4475 and CVE-2013-4476.
Remove dependency from gettext. Converted to STAGEDIR.

PR:		183872, 183885
Security:	CVE-2013-4475
		CVE-2013-4476
Sponsored by:	my wife
2013-11-19 21:49:39 +00:00

19 lines
810 B
C

--- ./source3/smbd/quotas.c.orig 2012-10-02 08:24:45.000000000 +0000
+++ ./source3/smbd/quotas.c 2013-11-18 22:45:12.800444516 +0000
@@ -144,6 +144,7 @@
if (!cutstr)
return False;
+ memset(&D, '\0', sizeof(D));
memset(cutstr, '\0', len+1);
host = strncat(cutstr,mnttype, sizeof(char) * len );
DEBUG(5,("nfs_quotas: looking for mount on \"%s\"\n", cutstr));
@@ -152,7 +153,7 @@
args.gqa_pathp = testpath+1;
args.gqa_uid = uid;
- DEBUG(5,("nfs_quotas: Asking for host \"%s\" rpcprog \"%i\" rpcvers \"%i\" network \"%s\"\n", host, RQUOTAPROG, RQUOTAVERS, "udp"));
+ DEBUG(5,("nfs_quotas: Asking for host \"%s\" rpcprog \"%lu\" rpcvers \"%lu\" network \"%s\"\n", host, RQUOTAPROG, RQUOTAVERS, "udp"));
if ((clnt = clnt_create(host, RQUOTAPROG, RQUOTAVERS, "udp")) == NULL) {
ret = False;