From 450699ecf86f3bebab00ca162349270730026d7f Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 27 Feb 2018 14:20:33 -0500 Subject: [PATCH] safe_open_ex: add a comment about why O_PATH doesn't work. --- src/libadacl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libadacl.c b/src/libadacl.c index 21b8141..01cb4ad 100644 --- a/src/libadacl.c +++ b/src/libadacl.c @@ -40,6 +40,9 @@ * open a file descriptor in a symlink-safe way when combined with * the @c O_NOFOLLOW flag. * + * The @c O_PATH flag is not used because we want to fail upon + * encountering any symlinks. + * * @param at_fd * A file descriptor relative to which @c pathname will be opened. * -- 2.44.2