From d166b798529dab4538054d0b68797c0cc17f34de Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 28 Mar 2012 12:48:00 +1100 Subject: build: Remove sys_open wrapper --- source3/smbd/quotas.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/smbd/quotas.c') diff --git a/source3/smbd/quotas.c b/source3/smbd/quotas.c index 41516621f0..c2616157e4 100644 --- a/source3/smbd/quotas.c +++ b/source3/smbd/quotas.c @@ -876,7 +876,7 @@ bool disk_quotas(const char *path, } DEBUG(5,("disk_quotas: looking for quotas file \"%s\"\n", name)); - if((file=sys_open(name, O_RDONLY,0))<0) { + if((file=open(name, O_RDONLY,0))<0) { unbecome_root(); return false; } @@ -1585,7 +1585,7 @@ bool disk_quotas_vxfs(const char *name, char *path, uint64_t *bsize, uint64_t *d set_effective_uid(0); DEBUG(5,("disk_quotas: looking for VxFS quotas file \"%s\"\n", qfname)); - if((file=sys_open(qfname, O_RDONLY,0))<0) { + if((file=open(qfname, O_RDONLY,0))<0) { set_effective_uid(euser_id); return(False); } -- cgit