summaryrefslogtreecommitdiff
path: root/net/samba32/files/patch-smbd__quotas.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/samba32/files/patch-smbd__quotas.c')
-rw-r--r--net/samba32/files/patch-smbd__quotas.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/net/samba32/files/patch-smbd__quotas.c b/net/samba32/files/patch-smbd__quotas.c
new file mode 100644
index 000000000000..297ee470c73a
--- /dev/null
+++ b/net/samba32/files/patch-smbd__quotas.c
@@ -0,0 +1,20 @@
+--- ./smbd/quotas.c.orig 2008-10-10 00:48:11.000000000 +0000
++++ ./smbd/quotas.c 2008-10-10 00:48:41.000000000 +0000
+@@ -1023,6 +1023,8 @@
+ enum clnt_stat clnt_stat;
+ bool ret = True;
+
++ memset(&D, 0, sizeof(D));
++
+ *bsize = *dfree = *dsize = (SMB_BIG_UINT)0;
+
+ len=strcspn(mnttype, ":");
+@@ -1039,7 +1041,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;