summaryrefslogtreecommitdiff
path: root/source/locking/locking_slow.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/locking/locking_slow.c')
-rw-r--r--source/locking/locking_slow.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/locking/locking_slow.c b/source/locking/locking_slow.c
index f1e0fa21496..7c273552242 100644
--- a/source/locking/locking_slow.c
+++ b/source/locking/locking_slow.c
@@ -165,8 +165,7 @@ static BOOL slow_lock_share_entry(connection_struct *conn,
{
SMB_STRUCT_STAT dummy_stat;
- fd = (int)open(fname,read_only?O_RDONLY:(O_RDWR|O_CREAT),
- SHARE_FILE_MODE);
+ fd = sys_open(fname,read_only?O_RDONLY:(O_RDWR|O_CREAT), SHARE_FILE_MODE);
if(fd < 0)
{
@@ -1008,7 +1007,7 @@ static int slow_share_forall(void (*fn)(share_mode_entry *, char *))
pstrcat(lname,"/");
pstrcat(lname,s);
- fd = open(lname,read_only?O_RDONLY:O_RDWR,0);
+ fd = sys_open(lname,read_only?O_RDONLY:O_RDWR,0);
if (fd < 0) {
continue;
}