mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
vfs: define VFS_OPEN_HOW_RESOLVE_NO_SYMLINKS
This will allow us to make use of openat2(RESOLVE_NO_SYMLINKS) soon. The caller should check if connection_struct.open_how_resolve contains VFS_OPEN_HOW_RESOLVE_NO_SYMLINKS before using it, this avoids waisting cpu time. But even then the caller must be prepared to handle -1/ENOSYS. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Volker Lendecke <vl@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
ae1a84f731
commit
f7dc275583
@ -716,6 +716,7 @@ typedef struct connection_struct {
|
||||
bool ipc;
|
||||
bool read_only; /* Attributes for the current user of the share. */
|
||||
bool have_proc_fds;
|
||||
uint64_t open_how_resolve; /* supported vfs_open_how.resolve features */
|
||||
uint32_t share_access;
|
||||
/* Does this filesystem honor
|
||||
sub second timestamps on files
|
||||
@ -905,6 +906,8 @@ struct vfs_aio_state {
|
||||
uint64_t duration;
|
||||
};
|
||||
|
||||
#define VFS_OPEN_HOW_RESOLVE_NO_SYMLINKS 1
|
||||
|
||||
struct vfs_open_how {
|
||||
int flags;
|
||||
mode_t mode;
|
||||
|
Loading…
x
Reference in New Issue
Block a user