BACKUP_INTENT has no real meaning so far throughout our code, so we
should ignore and thus allow it in our openat-intercepting functions.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
bool aio_allow_open = lp_parm_bool(
SNUM(handle->conn), "aio_pthread", "aio open", false);
- if (how->resolve != 0) {
+ if ((how->resolve & ~VFS_OPEN_HOW_WITH_BACKUP_INTENT) != 0) {
errno = ENOSYS;
return -1;
}
int result = -ENOENT;
int dirfd = -1;
- if (how->resolve != 0) {
+ if ((how->resolve & ~VFS_OPEN_HOW_WITH_BACKUP_INTENT) != 0) {
errno = ENOSYS;
return -1;
}
int result = -ENOENT;
START_PROFILE(syscall_openat);
- if (how->resolve != 0) {
+ if ((how->resolve & ~VFS_OPEN_HOW_WITH_BACKUP_INTENT) != 0) {
result = -ENOSYS;
goto err_out;
}
how);
}
- if (how->resolve != 0) {
+ if ((how->resolve & ~VFS_OPEN_HOW_WITH_BACKUP_INTENT) != 0) {
errno = ENOSYS;
return -1;
}
START_PROFILE(syscall_openat);
- if (how->resolve != 0) {
+ if ((how->resolve & ~VFS_OPEN_HOW_WITH_BACKUP_INTENT) != 0) {
END_PROFILE(syscall_openat);
errno = ENOSYS;
return -1;
how);
}
- if (how->resolve != 0) {
+ if ((how->resolve & ~VFS_OPEN_HOW_WITH_BACKUP_INTENT) != 0) {
errno = ENOSYS;
return -1;
}
how);
}
- if (how->resolve != 0) {
+ if ((how->resolve & ~VFS_OPEN_HOW_WITH_BACKUP_INTENT) != 0) {
errno = ENOSYS;
return -1;
}