mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 01:21:44 +00:00
lib: don't mkdir state paths in watchfrr
watchfrr doesn't know if there will be -u/-g options on the individual daemons, so it doesn't know what the appropriate ownership is. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
c9c8d0d189
commit
b8c1fde3cb
@ -399,12 +399,15 @@ struct thread_master *frr_init(void)
|
||||
zlog_set_level(ZLOG_DEST_SYSLOG, zlog_default->default_lvl);
|
||||
#endif
|
||||
|
||||
/* don't mkdir these as root... */
|
||||
if (!(di->flags & FRR_NO_PRIVSEP)) {
|
||||
if (!di->pid_file || !di->vty_path)
|
||||
frr_mkdir(frr_vtydir, false);
|
||||
if (di->pid_file)
|
||||
frr_mkdir(di->pid_file, true);
|
||||
if (di->vty_path)
|
||||
frr_mkdir(di->vty_path, true);
|
||||
}
|
||||
|
||||
frrmod_init(di->module);
|
||||
while (modules) {
|
||||
|
Loading…
Reference in New Issue
Block a user