FreeBSD Bugzilla – Attachment 48924 Details for
Bug 74820
/etc/rc deletes /var/run/log by mistake, problem for syslogd running outside of chroot jails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
rc.diff
rc.diff (text/plain), 984 bytes, created by
zenin
on 2004-12-07 21:10:23 UTC
(
hide
)
Description:
rc.diff
Filename:
MIME Type:
Creator:
zenin
Created:
2004-12-07 21:10:23 UTC
Size:
984 bytes
patch
obsolete
>*** /etc/rc Wed Nov 20 03:58:28 2002 >--- etc/rc Mon Dec 6 17:05:00 2004 >*************** >*** 242,248 **** > if [ -d "$file" -a ! -L "$file" ]; then > purgedir "$file" > else >! rm -f -- "$file" > fi > done > ) >--- 242,263 ---- > if [ -d "$file" -a ! -L "$file" ]; then > purgedir "$file" > else >! # Ugly Kludge to protect /var/run/log when it's created outside (in a jail) >! if [ "$dir" = "/var/run" -a "$file" = "log" ]; then >! # Are we in a jail? -Ed: There must be an easier way to tell? >! if ps -p $$ -o stat | tail -1 | grep 'J'>/dev/null; then >! # If the jail has its own syslogd then ignore all this hubbub >! case ${syslogd_enable} in >! [Yy][Ee][Ss]) >! # do *NOT* delete /var/run/log unless *this* >! # jail is going to be running syslog. >! rm -f -- "$file" >! ;; >! esac >! fi >! else >! rm -f -- "$file" >! fi > fi > done > )
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 74820
: 48924