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/modules/vfs_crossrename.c | 6 +++--- source3/modules/vfs_default.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/modules') 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; -- cgit