summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-03-30 08:45:38 +0200
committerGitHub <noreply@github.com>2023-03-30 08:45:38 +0200
commit47ef19d6b9720543d9a6db1684da87a6620b65e2 (patch)
treea17f796015782c87b597cb65cb70124c5a4edf09 /src
parentd53bda316be6ba226788b40e101a3bff5aa75a5f (diff)
parent6d5d3e207b17ecfc6588d63e02139dfd986c8ef3 (diff)
downloadsystemd-47ef19d6b9720543d9a6db1684da87a6620b65e2.tar.gz
Merge pull request #27062 from yuwata/chase-trivial
chase: trivial cleanups
Diffstat (limited to 'src')
-rw-r--r--src/basic/chase.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/basic/chase.c b/src/basic/chase.c
index 6c02aeab8b..4b8edefcab 100644
--- a/src/basic/chase.c
+++ b/src/basic/chase.c
@@ -195,7 +195,7 @@ int chaseat(
}
/* If we get AT_FDCWD, we always resolve symlinks relative to the host's root. Only if a positive
- * directory file descriptor is provided will we look at CHASE_AT_RESOLVE_IN_ROOT to determine
+ * directory file descriptor is provided we will look at CHASE_AT_RESOLVE_IN_ROOT to determine
* whether to resolve symlinks in it or not. */
if (dir_fd >= 0 && FLAGS_SET(flags, CHASE_AT_RESOLVE_IN_ROOT))
root_fd = openat(dir_fd, ".", O_CLOEXEC|O_DIRECTORY|O_PATH);
@@ -517,9 +517,9 @@ int chase(
path = path_startswith(absolute, empty_to_root(root));
if (!path)
return log_full_errno(flags & CHASE_WARN ? LOG_WARNING : LOG_DEBUG,
- SYNTHETIC_ERRNO(ECHRNG),
- "Specified path '%s' is outside of specified root directory '%s', refusing to resolve.",
- absolute, empty_to_root(root));
+ SYNTHETIC_ERRNO(ECHRNG),
+ "Specified path '%s' is outside of specified root directory '%s', refusing to resolve.",
+ absolute, empty_to_root(root));
fd = open(empty_to_root(root), O_CLOEXEC|O_DIRECTORY|O_PATH);
if (fd < 0)