summaryrefslogtreecommitdiff
path: root/net/samba41/files/patch-source3__smbd__quotas.c
diff options
context:
space:
mode:
authorTimur I. Bakeyev <timur@FreeBSD.org>2014-01-13 23:30:52 +0000
committerTimur I. Bakeyev <timur@FreeBSD.org>2014-01-13 23:30:52 +0000
commitc755a680b5cdf95699204f29bae336936af6911b (patch)
tree61be0f8a8d3111af1eb3ca9f57a0040450db79e4 /net/samba41/files/patch-source3__smbd__quotas.c
parentUpdate ICBM coordinates. Darn, all this time I was inactive I thought (diff)
Add new 4.1 branch of the Samba suite.
Sponsored by: aliens
Diffstat (limited to 'net/samba41/files/patch-source3__smbd__quotas.c')
-rw-r--r--net/samba41/files/patch-source3__smbd__quotas.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/net/samba41/files/patch-source3__smbd__quotas.c b/net/samba41/files/patch-source3__smbd__quotas.c
new file mode 100644
index 000000000000..0708b8b2eac9
--- /dev/null
+++ b/net/samba41/files/patch-source3__smbd__quotas.c
@@ -0,0 +1,19 @@
+--- ./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;