fs-util: rename laccess to access_nofollow
In order to distinguish it from libc function naming.
This commit is contained in:
@@ -169,7 +169,7 @@ static int condition_test_credential(Condition *c, char **env) {
|
||||
if (!j)
|
||||
return -ENOMEM;
|
||||
|
||||
r = laccess(j, F_OK);
|
||||
r = access_nofollow(j, F_OK);
|
||||
if (r >= 0)
|
||||
return true; /* yay! */
|
||||
if (r != -ENOENT)
|
||||
|
||||
@@ -34,7 +34,7 @@ static int access_check_var_log_journal(sd_journal *j, bool want_other_users) {
|
||||
_cleanup_strv_free_ char **g = NULL;
|
||||
const char* dir;
|
||||
|
||||
if (laccess("/run/log/journal", F_OK) >= 0)
|
||||
if (access_nofollow("/run/log/journal", F_OK) >= 0)
|
||||
dir = "/run/log/journal";
|
||||
else
|
||||
dir = "/var/log/journal";
|
||||
|
||||
@@ -427,7 +427,7 @@ int bind_remount_one_with_mountinfo(
|
||||
|
||||
fs = mnt_table_find_target(table, path, MNT_ITER_FORWARD);
|
||||
if (!fs) {
|
||||
r = laccess(path, F_OK); /* Hmm, it's not in the mount table, but does it exist at all? */
|
||||
r = access_nofollow(path, F_OK); /* Hmm, it's not in the mount table, but does it exist at all? */
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
@@ -879,7 +879,7 @@ static int mount_in_namespace_legacy(
|
||||
assert(!options || (flags & MOUNT_IN_NAMESPACE_IS_IMAGE));
|
||||
|
||||
p = strjoina(propagate_path, "/");
|
||||
r = laccess(p, F_OK);
|
||||
r = access_nofollow(p, F_OK);
|
||||
if (r < 0)
|
||||
return log_debug_errno(r == -ENOENT ? SYNTHETIC_ERRNO(EOPNOTSUPP) : r, "Target does not allow propagation of mount points");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user