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
+4 -3
View File
@@ -32,9 +32,10 @@ typedef enum {
} WriteStringFileFlags;
typedef enum {
READ_FULL_FILE_SECURE = 1 << 0,
READ_FULL_FILE_UNBASE64 = 1 << 1,
READ_FULL_FILE_UNHEX = 1 << 2,
READ_FULL_FILE_SECURE = 1 << 0,
READ_FULL_FILE_UNBASE64 = 1 << 1,
READ_FULL_FILE_UNHEX = 1 << 2,
READ_FULL_FILE_WARN_WORLD_READABLE = 1 << 3,
} ReadFullFileFlags;
int fopen_unlocked(const char *path, const char *options, FILE **ret);