vfs: define VFS_OPEN_HOW_RESOLVE_NO_SYMLINKS
commit25071a1f4ee1d4893078514c7355abb681ff2695
authorVolker Lendecke <vl@samba.org>
Fri, 3 Jun 2022 14:45:41 +0000 (3 16:45 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 16 Aug 2022 18:27:13 +0000 (16 18:27 +0000)
tree9ee340cea6b4ddcfd2a831475373a52ea529212f
parentb71871a193d38e8f3e9e4da426b11ed402f4438b
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>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15146
(cherry picked from commit f7dc27558329eea7d2c4d75ee101c7f9d3a7afe3)
source3/include/vfs.h