summaryrefslogtreecommitdiffstats
path: root/src/nspawn
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-10-05 01:30:43 +0200
committerMike Yuan <me@yhndnzj.com>2024-10-05 01:30:43 +0200
commit3f8999a76e1320bfd4e601d4d88635ef026a67e2 (patch)
treec2fbc79e564a838aa84f930c822482fdc6050509 /src/nspawn
parentvarious: correct laccess() error check (diff)
downloadsystemd-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.c2
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;