fileio: add WRITE_DATA_FILE_MODE_0400 mode

This commit is contained in:
Lennart Poettering
2026-03-26 14:34:56 +01:00
parent 0c2747e789
commit 23b4c833a4
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1706,7 +1706,7 @@ int write_data_file_atomic_at(
return r;
}
r = fchmod_umask(fd, 0644);
r = fchmod_umask(fd, FLAGS_SET(flags, WRITE_DATA_FILE_MODE_0400) ? 0400 : 0644);
if (r < 0)
return r;