summaryrefslogtreecommitdiffstats
path: root/source/smbd/ntquotas.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-02-03 22:19:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:06:23 -0500
commit17e63ac4ed8325c0d44fe62b2442449f3298559f (patch)
tree19a0c31c817c9bc26fd53485b5348ab4af127a23 /source/smbd/ntquotas.c
parent50c894a6e949d4d3579926650674f381a821a671 (diff)
downloadsamba-17e63ac4ed8325c0d44fe62b2442449f3298559f.tar.gz
samba-17e63ac4ed8325c0d44fe62b2442449f3298559f.tar.xz
samba-17e63ac4ed8325c0d44fe62b2442449f3298559f.zip
r13316: Let the carnage begin....
Sync with trunk as off r13315
Diffstat (limited to 'source/smbd/ntquotas.c')
-rw-r--r--source/smbd/ntquotas.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/source/smbd/ntquotas.c b/source/smbd/ntquotas.c
index 9bc444d2536..a824978ecea 100644
--- a/source/smbd/ntquotas.c
+++ b/source/smbd/ntquotas.c
@@ -87,7 +87,7 @@ int vfs_get_ntquota(files_struct *fsp, enum SMB_QUOTA_TYPE qtype, DOM_SID *psid,
id.uid = -1;
- if (psid && !NT_STATUS_IS_OK(sid_to_uid(psid, &id.uid))) {
+ if (psid && !sid_to_uid(psid, &id.uid)) {
DEBUG(0,("sid_to_uid: failed, SID[%s]\n",
sid_string_static(psid)));
}
@@ -131,7 +131,7 @@ int vfs_set_ntquota(files_struct *fsp, enum SMB_QUOTA_TYPE qtype, DOM_SID *psid,
D.isoftlimit = limit_blk2inodes(D.softlimit);
D.ihardlimit = limit_blk2inodes(D.hardlimit);
- if (psid && !NT_STATUS_IS_OK(sid_to_uid(psid, &id.uid))) {
+ if (psid && !sid_to_uid(psid, &id.uid)) {
DEBUG(0,("sid_to_uid: failed, SID[%s]\n",
sid_string_static(psid)));
}
@@ -185,10 +185,7 @@ int vfs_get_user_ntquota_list(files_struct *fsp, SMB_NTQUOTA_LIST **qt_list)
continue;
}
- if (!NT_STATUS_IS_OK(uid_to_sid(&sid, usr->pw_uid))) {
- DEBUG(0,("uid_to_sid failed for %ld\n",(long)usr->pw_uid));
- continue;
- }
+ uid_to_sid(&sid, usr->pw_uid);
if (vfs_get_ntquota(fsp, SMB_USER_QUOTA_TYPE, &sid, &tmp_qt)!=0) {
DEBUG(5,("no quota entry for sid[%s] path[%s]\n",