diff options
| author | Mateusz Piotrowski <0mp@FreeBSD.org> | 2025-10-22 16:19:59 +0200 |
|---|---|---|
| committer | Mateusz Piotrowski <0mp@FreeBSD.org> | 2025-10-22 16:23:29 +0200 |
| commit | 0d1acc305fd347c0cd6ed1a0ddc6b11a638dd80c (patch) | |
| tree | 06534c84bdd9b48ac984b074ac1a3803704c8d37 /net/samba422/files/0021-Fix-casting-warnings-in-the-nfs_quota-debug-message.patch | |
| parent | x11/walker: Update to 2.5.6 (diff) | |
net/samba422: Repocopy from net/samba420
PR: 287985
Reported by: Andrej Ebert <andrej@ebert.su>
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D52167
Diffstat (limited to 'net/samba422/files/0021-Fix-casting-warnings-in-the-nfs_quota-debug-message.patch')
| -rw-r--r-- | net/samba422/files/0021-Fix-casting-warnings-in-the-nfs_quota-debug-message.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/net/samba422/files/0021-Fix-casting-warnings-in-the-nfs_quota-debug-message.patch b/net/samba422/files/0021-Fix-casting-warnings-in-the-nfs_quota-debug-message.patch new file mode 100644 index 000000000000..c364031b4603 --- /dev/null +++ b/net/samba422/files/0021-Fix-casting-warnings-in-the-nfs_quota-debug-message.patch @@ -0,0 +1,36 @@ +From 46f5b54aa5761541a16108d66764d662f37f04d2 Mon Sep 17 00:00:00 2001 +From: "Timur I. Bakeyev" <timur@FreeBSD.org> +Date: Mon, 31 May 2021 02:41:48 +0200 +Subject: [PATCH 21/28] Fix casting warnings in the nfs_quota debug message. + +Initialize quota structure with zeros. + +Signed-off-by: Timur I. Bakeyev <timur@FreeBSD.org> +--- + source3/smbd/quotas.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/source3/smbd/quotas.c b/source3/smbd/quotas.c +index 604631f81d6..c23fa49b3b0 100644 +--- a/source3/smbd/quotas.c ++++ b/source3/smbd/quotas.c +@@ -125,6 +125,7 @@ static bool nfs_quotas(char *nfspath, uid_t euser_id, uint64_t *bsize, uint64_t + 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)); +@@ -133,7 +134,7 @@ static bool nfs_quotas(char *nfspath, uid_t euser_id, uint64_t *bsize, uint64_t + 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; +-- +2.37.1 + |
