diff options
author | Gerald Carter <jerry@samba.org> | 2004-03-16 19:06:03 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2004-03-16 19:06:03 +0000 |
commit | 9073c95b97386ad2a3d1f90bc41b735f4a53ed3d (patch) | |
tree | 338b497b48b774fe1c1f8e010a5fa13aee09ea35 | |
parent | 8ef645c8a9a85882d04acb4f978ec060b0fb7c06 (diff) | |
download | samba-9073c95b97386ad2a3d1f90bc41b735f4a53ed3d.tar.gz |
BUG 979 -- fix quota display on AIX; patch from Heinrich.Mislik@univie.ac.at (Heinrich Mislik)
(This used to be commit 760b63496ccc908c76ea5d3ed474cbbca268ad61)
-rw-r--r-- | source3/smbd/quotas.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/quotas.c b/source3/smbd/quotas.c index c0b2db61730..e439c1e571a 100644 --- 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__ */ |