main: create NMSTATEDIR with permissions 700
authorThomas Haller <thaller@redhat.com>
Mon, 21 Mar 2016 10:40:42 +0000 (11:40 +0100)
committerThomas Haller <thaller@redhat.com>
Mon, 21 Mar 2016 10:41:51 +0000 (11:41 +0100)
commit8297683605c56efc96defbbb622ff8af8e05bb91
tree4457f97c83c29230c10b7aaa5e19a6f8da7a7508
parentb907d90f612818050f4a88d7b3f30ffd19c4e929
main: create NMSTATEDIR with permissions 700

"NMSTATEDIR" is "nmstatedir" is "'${localstatedir}'/lib/$PACKAGE" is
usually "/var/lib/NetworkManager".

The "install-data-hook" in "src/Makefile.am" properly installs the
directory with permissions 700. When creating the directory at startup,
we must also use those permissions.
src/main.c