diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-03-28 12:48:00 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-04-05 02:39:08 +0200 |
commit | d166b798529dab4538054d0b68797c0cc17f34de (patch) | |
tree | 8bbdeba0c71b1819abe153e7bf3a2c024adc42cf /source3/modules | |
parent | 9cc056e567fe923bb3a19fce3828cdbea9a3d2f7 (diff) | |
download | samba-d166b798529dab4538054d0b68797c0cc17f34de.tar.gz samba-d166b798529dab4538054d0b68797c0cc17f34de.tar.xz samba-d166b798529dab4538054d0b68797c0cc17f34de.zip |
build: Remove sys_open wrapper
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_crossrename.c | 6 | ||||
-rw-r--r-- | source3/modules/vfs_default.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/modules/vfs_crossrename.c b/source3/modules/vfs_crossrename.c index a54125c326..a38ae45948 100644 --- a/source3/modules/vfs_crossrename.c +++ b/source3/modules/vfs_crossrename.c @@ -70,16 +70,16 @@ static int copy_reg(const char *source, const char *dest) return -1; } - if((ifd = sys_open (source, O_RDONLY, 0)) < 0) + if((ifd = open (source, O_RDONLY, 0)) < 0) return -1; if (unlink (dest) && errno != ENOENT) return -1; #ifdef O_NOFOLLOW - if((ofd = sys_open (dest, O_WRONLY | O_CREAT | O_TRUNC | O_NOFOLLOW, 0600)) < 0 ) + if((ofd = open (dest, O_WRONLY | O_CREAT | O_TRUNC | O_NOFOLLOW, 0600)) < 0 ) #else - if((ofd = sys_open (dest, O_WRONLY | O_CREAT | O_TRUNC , 0600)) < 0 ) + if((ofd = open (dest, O_WRONLY | O_CREAT | O_TRUNC , 0600)) < 0 ) #endif goto err; diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 35073143c0..615c0296b4 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -481,7 +481,7 @@ static int vfswrap_open(vfs_handle_struct *handle, goto out; } - result = sys_open(smb_fname->base_name, flags, mode); + result = open(smb_fname->base_name, flags, mode); out: END_PROFILE(syscall_open); return result; |