flags = O_RDONLY;
}
- status = fd_open(fsp, flags, 0 /* mode */);
+ status = fd_openat(fsp, flags, 0);
if (!NT_STATUS_IS_OK(status)) {
TALLOC_FREE(lck);
DEBUG(1, ("vfs_default_durable_reconnect: failed to open "
/*
* We're not creating the file, just pass through.
*/
- status = fd_open(fsp, flags, mode);
+ status = fd_openat(fsp, flags, mode);
*file_created = false;
return status;
}
/*
* Fail if already exists, just pass through.
*/
- status = fd_open(fsp, flags, mode);
+ status = fd_openat(fsp, flags, mode);
/*
* Here we've opened with O_CREAT|O_EXCL. If that went
retry_status = NT_STATUS_OBJECT_NAME_COLLISION;
}
- status = fd_open(fsp, curr_flags, mode);
+ status = fd_openat(fsp, curr_flags, mode);
if (NT_STATUS_IS_OK(status)) {
*file_created = !file_existed;
return NT_STATUS_OK;
curr_flags = flags | O_EXCL;
}
- status = fd_open(fsp, curr_flags, mode);
+ status = fd_openat(fsp, curr_flags, mode);
}
*file_created = (NT_STATUS_IS_OK(status) && !file_existed);
flags |= O_DIRECTORY;
#endif
- status = fd_open(fsp, flags, 0);
+ status = fd_openat(fsp, flags, 0);
if (!NT_STATUS_IS_OK(status)) {
DBG_INFO("Could not open fd for "
"%s (%s)\n",