From: Michael Orlitzky Date: Tue, 27 Feb 2018 19:20:33 +0000 (-0500) Subject: safe_open_ex: add a comment about why O_PATH doesn't work. X-Git-Tag: v0.1.3~3 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=450699ecf86f3bebab00ca162349270730026d7f;p=apply-default-acl.git safe_open_ex: add a comment about why O_PATH doesn't work. --- 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. *