summaryrefslogtreecommitdiffstats
path: root/src/test/test-fs-util.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-03-03 05:07:10 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-03-04 23:10:13 +0100
commitf5fbe71d956957ca7ceb6777aed05a416fc83a43 (patch)
tree67358d417604030867a979f216bbb79939a37844 /src/test/test-fs-util.c
parenttable: drop last SIZE_MAX from table_set_sort() and table_set_display() (diff)
downloadsystemd-f5fbe71d956957ca7ceb6777aed05a416fc83a43.tar.xz
systemd-f5fbe71d956957ca7ceb6777aed05a416fc83a43.zip
tree-wide: use UINT64_MAX or friends
Diffstat (limited to 'src/test/test-fs-util.c')
-rw-r--r--src/test/test-fs-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-fs-util.c b/src/test/test-fs-util.c
index 8d6984d04c..c42c48722f 100644
--- a/src/test/test-fs-util.c
+++ b/src/test/test-fs-util.c
@@ -864,7 +864,7 @@ static void test_conservative_rename(void) {
assert_se(access(q, F_OK) < 0 && errno == ENOENT);
/* Check that a manual copy is detected */
- assert_se(copy_file(p, q, 0, (mode_t) -1, 0, 0, COPY_REFLINK) >= 0);
+ assert_se(copy_file(p, q, 0, MODE_INVALID, 0, 0, COPY_REFLINK) >= 0);
assert_se(conservative_renameat(AT_FDCWD, q, AT_FDCWD, p) == 0);
assert_se(access(q, F_OK) < 0 && errno == ENOENT);