file: preserve original file mode after commit master
authorAlin Nastac <alin.nastac@gmail.com>
Fri, 24 Apr 2020 14:49:55 +0000 (16:49 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Mon, 27 Apr 2020 19:16:27 +0000 (21:16 +0200)
commitec8d3233948603485e1b97384113fac9f1bab5d6
tree5ee83902ab7e5aaa6ead795588f97a9338414f8d
parente8d83732f9eb571dce71aa915ff38a072579610b
file: preserve original file mode after commit

Because mkstemp() create a file with mode 0600, only user doing
the commit (typically root) will be allowed to inspect the content
of the file after uci commit.

Signed-off-by: Alin Nastac <alin.nastac@gmail.com>
file.c