fileio: add explicit flag for generating world executable warning when reading file

This commit is contained in:
Lennart Poettering
2020-07-21 09:56:44 +02:00
parent 2e3e2750bb
commit f294470262
4 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -505,7 +505,7 @@ int read_full_stream_full(
if (st.st_size > 0)
n_next = st.st_size + 1;
if (flags & READ_FULL_FILE_SECURE)
if (flags & READ_FULL_FILE_WARN_WORLD_READABLE)
(void) warn_file_is_world_accessible(filename, &st, NULL, 0);
}
}