summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_crossrename.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/modules/vfs_crossrename.c')
-rw-r--r--source3/modules/vfs_crossrename.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/modules/vfs_crossrename.c b/source3/modules/vfs_crossrename.c
index a54125c3269..a38ae45948a 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;