From f63383a31fa42ca5171692188a10c5be3f128b95 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 30 Apr 2019 19:32:31 +0200 Subject: [PATCH] test-fs-util: don't validate mode of symlinks Some file systems refuse changing the mode, and the mode has zero effect anyway, hence let's no test for this. --- src/test/test-fs-util.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/test/test-fs-util.c b/src/test/test-fs-util.c index 0610416d370..85d679826fc 100644 --- a/src/test/test-fs-util.c +++ b/src/test/test-fs-util.c @@ -636,7 +636,6 @@ static void test_touch_file(void) { assert_se(st.st_uid == test_uid); assert_se(st.st_gid == test_gid); assert_se(S_ISLNK(st.st_mode)); - assert_se((st.st_mode & 0777) == 0640); assert_se(timespec_load(&st.st_mtim) == test_mtime); } -- 2.47.3