Stefan Metzmacher <metze@xxxxxxxxx> wrote: > Where's the RESOLVE_NO_TERMINAL_AUTOMOUNTS check? See: (3) Make openat2() support RESOLVE_NO_TERMINAL_SYMLINKS. LOOKUP_OPEN internally implies LOOKUP_AUTOMOUNT, and AT_EMPTY_PATH is probably not worth supporting (maybe use dup2() instead?). As things currently stand, automount following is explicitly forced on for open and create. We can make it error out instead if this is desirable if RESOLVE_NO_TERMINAL_AUTOMOUNTS in such a case. David