]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/fileio.h
fileio: add WRITE_STRING_FILE_MODE_0600 flag for writing files
authorLennart Poettering <lennart@poettering.net>
Fri, 17 May 2019 13:52:35 +0000 (15:52 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 2 Dec 2019 08:47:00 +0000 (09:47 +0100)
commit95244ceb9c827ce6762a57baf36aa229b594fd0f
treefebc3a1017500869385ed883f8b3aa9ae3e63258
parent8241f785f414dfa1f1af053451eafa53e215b1ac
fileio: add WRITE_STRING_FILE_MODE_0600 flag for writing files

usually we want to create new files with mode 0666 (modulated by the
umask). Sometimes we want more restrictive access though, let's add an
explicit flag support for that.

(Note that we don't bother with arbitrary access modes to keep things
simple: just "open as umask permits" and "private to me", nothing else)
src/basic/fileio.c
src/basic/fileio.h