No change in behaviour, this just prepares for changes to come.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
READ_CONTROL_ACCESS;
bool creating = !file_existed && (flags & O_CREAT);
bool truncating = (flags & O_TRUNC);
+ bool open_fd = false;
fsp->fh->fd = -1;
errno = EPERM;
}
if ((open_access_mask & need_fd_mask) || creating || truncating) {
+ open_fd = true;
+ }
+
+ if (open_fd) {
const char *wild;
int ret;