diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-10-05 01:30:43 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-10-05 01:30:43 +0200 |
commit | 3f8999a76e1320bfd4e601d4d88635ef026a67e2 (patch) | |
tree | c2fbc79e564a838aa84f930c822482fdc6050509 /src/portable | |
parent | various: correct laccess() error check (diff) | |
download | systemd-3f8999a76e1320bfd4e601d4d88635ef026a67e2.tar.xz systemd-3f8999a76e1320bfd4e601d4d88635ef026a67e2.zip |
fs-util: rename laccess to access_nofollow
In order to distinguish it from libc function naming.
Diffstat (limited to 'src/portable')
-rw-r--r-- | src/portable/portablectl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/portablectl.c b/src/portable/portablectl.c index e4eb437b2e..7f770f5f92 100644 --- a/src/portable/portablectl.c +++ b/src/portable/portablectl.c @@ -69,7 +69,7 @@ static int determine_image(const char *image, bool permit_non_existing, char **r if (image_name_is_valid(image)) { char *c; - if (!arg_quiet && laccess(image, F_OK) >= 0) + if (!arg_quiet && access_nofollow(image, F_OK) >= 0) log_warning("Ambiguous invocation: current working directory contains file matching non-path argument '%s', ignoring. " "Prefix argument with './' to force reference to file in current working directory.", image); |