vfs: define VFS_OPEN_HOW_RESOLVE_NO_SYMLINKS
commitf7dc27558329eea7d2c4d75ee101c7f9d3a7afe3
authorVolker Lendecke <vl@samba.org>
Fri, 3 Jun 2022 14:45:41 +0000 (3 16:45 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 15 Aug 2022 15:03:37 +0000 (15 15:03 +0000)
treeff3fc806a76637a8457cb73ab602a45765a85d1d
parentae1a84f7313bdf4702492451714eacc78ee7745f
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>
source3/include/vfs.h