summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-03-28 12:48:00 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-04-05 02:39:08 +0200
commitd166b798529dab4538054d0b68797c0cc17f34de (patch)
tree8bbdeba0c71b1819abe153e7bf3a2c024adc42cf /source3/smbd
parent9cc056e567fe923bb3a19fce3828cdbea9a3d2f7 (diff)
downloadsamba-d166b798529dab4538054d0b68797c0cc17f34de.tar.gz
samba-d166b798529dab4538054d0b68797c0cc17f34de.tar.bz2
samba-d166b798529dab4538054d0b68797c0cc17f34de.zip
build: Remove sys_open wrapper
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/oplock_irix.c2
-rw-r--r--source3/smbd/quotas.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/oplock_irix.c b/source3/smbd/oplock_irix.c
index 2097945b97..aa987fccbb 100644
--- a/source3/smbd/oplock_irix.c
+++ b/source3/smbd/oplock_irix.c
@@ -64,7 +64,7 @@ static bool irix_oplocks_available(void)
return False;
}
- if((fd = sys_open(tmpname, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0600)) < 0) {
+ if((fd = open(tmpname, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0600)) < 0) {
DEBUG(0,("check_kernel_oplocks: Unable to open temp test file "
"%s. Error was %s\n",
tmpname, strerror(errno) ));
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);
}