CVSROOT: /cvs Module name: src Changes by: [email protected] 2016/12/27 12:16:24
Modified files:
usr.sbin/syslogd: privsep.c syslogd.c
Log message:
If syslogd was started with a relative path, the program could not
re-exec itself. This exec is done during startup of the privsep
parent or when syslogd restarts after a SIGHUP. Convert a relative
path in argv[0] to an absolute one with realpath(3) before chdir(2).
Do all the path handling in priv_init().
suggested by millert@; OK jca@
