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/nspawn | |
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/nspawn')
-rw-r--r-- | src/nspawn/nspawn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index fb1954320e..47eff33e46 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -6154,7 +6154,7 @@ static int run(int argc, char *argv[]) { goto finish; } - if (laccess(p, F_OK) < 0) { + if (access_nofollow(p, F_OK) < 0) { r = log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Directory %s doesn't look like it has an OS tree (/usr/ directory is missing). Refusing.", arg_directory); goto finish; |