summaryrefslogtreecommitdiffstats
path: root/src/test/test-chown-rec.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-06-27 11:09:03 +0200
committerLennart Poettering <lennart@poettering.net>2023-06-28 22:01:07 +0200
commitd5602c16324ec545c82bb59a3d60a349da7c370c (patch)
tree24ac10926816917c0c52e6988e02f73a10ef529f /src/test/test-chown-rec.c
parentexecute: remove redundant assignment (diff)
downloadsystemd-d5602c16324ec545c82bb59a3d60a349da7c370c.tar.xz
systemd-d5602c16324ec545c82bb59a3d60a349da7c370c.zip
execute: when recursively chowning StateDirectory= when spawning services, follow initial symlink
It should be OK to allow one level of symlink for the various types of directories like StateDirectory=, LogsDirectory= and such.
Diffstat (limited to '')
-rw-r--r--src/test/test-chown-rec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-chown-rec.c b/src/test/test-chown-rec.c
index 801b49f7b7..dcff17efec 100644
--- a/src/test/test-chown-rec.c
+++ b/src/test/test-chown-rec.c
@@ -104,7 +104,7 @@ TEST(chown_recursive) {
assert_se(st.st_gid == gid);
assert_se(has_xattr(p));
- assert_se(path_chown_recursive(t, 1, 2, 07777) >= 0);
+ assert_se(path_chown_recursive(t, 1, 2, 07777, 0) >= 0);
p = strjoina(t, "/dir");
assert_se(lstat(p, &st) >= 0);