mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
When clearing /tmp, X11 lock and temporary files are special.
Remove them unconditionaly. PR: bin/59065 Approved by: re (scottl)
This commit is contained in:
parent
eb9bb3ee55
commit
c4818267a4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123086
@ -27,9 +27,13 @@ cleartmp_start()
|
||||
(cd /tmp && rm -rf [a-km-pr-zA-Z]* &&
|
||||
find -x . ! -name . ! -name lost+found ! -name quota.user \
|
||||
! -name quota.group -exec rm -rf -- {} \; -type d -prune)
|
||||
}
|
||||
|
||||
case ${OSTYPE} in
|
||||
FreeBSD)
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
||||
case ${OSTYPE} in
|
||||
FreeBSD)
|
||||
# Remove X lock files, since they will prevent you from
|
||||
# restarting X
|
||||
#
|
||||
@ -37,10 +41,6 @@ cleartmp_start()
|
||||
rm -fr /tmp/.X11-unix
|
||||
mkdir -m 1777 /tmp/.X11-unix
|
||||
;;
|
||||
NetBSD)
|
||||
NetBSD)
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user