git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba042a9
)
BUG 979 -- fix quota display on AIX; patch from Heinrich.Mislik@univie.ac.at (Heinric...
author
Gerald Carter
<jerry@samba.org>
Tue, 16 Mar 2004 19:06:30 +0000
(19:06 +0000)
committer
Gerald Carter
<jerry@samba.org>
Tue, 16 Mar 2004 19:06:30 +0000
(19:06 +0000)
(This used to be commit
8f9bedaeb1b3b102fa6b23da1f6b03eb0e015359
)
source3/smbd/quotas.c
patch
|
blob
|
history
diff --git
a/source3/smbd/quotas.c
b/source3/smbd/quotas.c
index c0b2db61730d7819b9ba519a44a2a458d4dfe9dd..e439c1e571a76067aa0a9ea62b780aa5ec40ee07 100644
(file)
--- a/
source3/smbd/quotas.c
+++ b/
source3/smbd/quotas.c
@@
-994,7
+994,11
@@
BOOL disk_quotas(const char *path, SMB_BIG_UINT *bsize, SMB_BIG_UINT *dfree, SMB
#elif defined(AIX)
/* AIX has both USER and GROUP quotas:
Get the USER quota (ohnielse@fysik.dtu.dk) */
+ save_re_uid();
+ if (set_re_uid() != 0)
+ return False;
r= quotactl(path,QCMD(Q_GETQUOTA,USRQUOTA),euser_id,(char *) &D);
+ restore_re_uid();
#else /* !__FreeBSD__ && !AIX && !__OpenBSD__ */
r=quotactl(Q_GETQUOTA, dev_disk, euser_id, &D);
#endif /* !__FreeBSD__ && !AIX && !__OpenBSD__ */