The Samba-Bugzilla – Attachment 11959 Details for
Bug 11815
smbcquotas: "NO LIMIT" reported on wrong value
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
a git-am fix for 4.4.next
smbcquotas.patch (text/plain), 1.16 KB, created by
Uri Simchoni
on 2016-04-01 05:25:30 UTC
(
hide
)
Description:
a git-am fix for 4.4.next
Filename:
MIME Type:
Creator:
Uri Simchoni
Created:
2016-04-01 05:25:30 UTC
Size:
1.16 KB
patch
obsolete
>From 78a6c38dffdea58155dc57222140b6d235f68daf Mon Sep 17 00:00:00 2001 >From: Uri Simchoni <uri@samba.org> >Date: Wed, 30 Mar 2016 14:20:44 +0300 >Subject: [PATCH] smbcquotas: print "NO LIMIT" only if returned quota value is > 0. > >If the user being queried has no quota, the server returns 0 as >its quota. This is the observed smbd and Windows behavior, which >is also documented in [MS-FSA] 2.5.1.20. > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=11815 > >Signed-off-by: Uri Simchoni <uri@samba.org> >Reviewed-by: Jeremy Allison <jra@samba.org> >(cherry picked from commit 9d6d62010be2a54b6828cc4cc9c13b5657c8b4a0) >--- > source3/utils/smbcquotas.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/source3/utils/smbcquotas.c b/source3/utils/smbcquotas.c >index 9e64319..e6f1dfb 100644 >--- a/source3/utils/smbcquotas.c >+++ b/source3/utils/smbcquotas.c >@@ -236,7 +236,7 @@ static const char *quota_str_static(uint64_t val, bool special, bool _numeric) > { > const char *result; > >- if (!_numeric&&special&&(val == SMB_NTQUOTAS_NO_LIMIT)) { >+ if (!_numeric && special && val == 0) { > return "NO LIMIT"; > } > result = talloc_asprintf(talloc_tos(), "%"PRIu64, val); >-- >2.5.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
jra
:
review+
Actions:
View
Attachments on
bug 11815
: 11959