]> git.puffer.fish Git - matthieu/frr.git/commit
vtysh: set config file permissions
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 8 Nov 2016 22:36:01 +0000 (23:36 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 9 Nov 2016 12:55:23 +0000 (13:55 +0100)
commit367988eeb307846fd173caae36905ba645a5305b
tree336544cf7fe658c1a7fecfc01681fbd8a91a2b21
parenta68f861653da95eeddf96f2afabd481db2798613
vtysh: set config file permissions

As vtysh may hopefully be running as root from watchquagga here, let's
try to fix up ownership and permissions for Quagga.conf.  Doing
chown/chmod instead of changing the process's user/group IDs has the
advantage of fixing up preexisting misconfigurations.

Note errors in chmod/chown will print a message but the config is
already written at that point.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
vtysh/vtysh.c