diff options
author | Jeremy Allison <jra@samba.org> | 1997-11-17 19:16:38 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1997-11-17 19:16:38 +0000 |
commit | 9f804556c4d0bb68f9b7acaf2b679bc0a02ea8f9 (patch) | |
tree | 869fdc138c242f9a059e62562ef267043941ec09 /source3/smbd/quotas.c | |
parent | 30dfa00877514274aef2cd3e1bd954b017beed10 (diff) | |
download | samba-9f804556c4d0bb68f9b7acaf2b679bc0a02ea8f9.tar.gz samba-9f804556c4d0bb68f9b7acaf2b679bc0a02ea8f9.tar.bz2 samba-9f804556c4d0bb68f9b7acaf2b679bc0a02ea8f9.zip |
loadparm.c : Added "veto oplock files" parameter.
make_printerdef.c: Fixed warning.
quotas.c: Fixed irix root errors.
server.c: Fixed oplock reference count bug.
smb.h: Added IS_VETO_OPLOCK_PATH().
Jeremy.
(This used to be commit c28487df63e29bc0f8d2ece876a07a2a076d4c73)
Diffstat (limited to 'source3/smbd/quotas.c')
-rw-r--r-- | source3/smbd/quotas.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/smbd/quotas.c b/source3/smbd/quotas.c index 8810bcd909..562d8fd5db 100644 --- a/source3/smbd/quotas.c +++ b/source3/smbd/quotas.c @@ -473,6 +473,8 @@ BOOL disk_quotas(char *path, int *bsize, int *dfree, int *dsize) { r=quotactl (Q_GETQUOTA, mnt->mnt_fsname, euser_id, (caddr_t) &D); + seteuid(euser_id); /* Restore the original uid status. */ + if (r==-1) return(False); @@ -502,6 +504,8 @@ BOOL disk_quotas(char *path, int *bsize, int *dfree, int *dsize) { r=quotactl (Q_XGETQUOTA, mnt->mnt_fsname, euser_id, (caddr_t) &F); + seteuid(euser_id); /* Restore the original uid status. */ + if (r==-1) return(False); @@ -531,7 +535,10 @@ BOOL disk_quotas(char *path, int *bsize, int *dfree, int *dsize) } else + { + seteuid(euser_id); /* Restore the original uid status. */ return(False); + } return (True); |