Browse Source

ARGH! the third part: socket handling cleanup

OPENBSD_5_0
deraadt 13 years ago
parent
commit
8aa252b3a2
1 changed files with 1 additions and 20 deletions
  1. +1
    -20
      src/etc/rc

+ 1
- 20
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.374 2011/07/08 01:43:09 deraadt Exp $
# $OpenBSD: rc,v 1.375 2011/07/08 01:43:59 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@ -504,25 +504,6 @@ echo clearing /tmp
find . ! -name . ! -name lost+found ! -name quota.user \
! -name quota.group -execdir rm -rf -- {} \; -type d -prune)
# create Unix sockets directories for X if needed and make sure they have
# correct permissions
if [ -d /usr/X11R6/lib ]; then
for d in /tmp/.X11-unix /tmp/.ICE-unix ; do
if [ -d $d ]; then
if [ `ls -ld $d | cut -d' ' -f4` != root ]; then
chown root $d
fi
if [ `ls -ld $d | cut -d' ' -f1` != drwxrwxrwt ]; then
chmod 1777 $d
fi
elif [ -e $d ]; then
echo "Error: $d exists and isn't a directory."
else
mkdir -m 1777 $d
fi
done
fi
setup_X_sockets
[ -f /etc/rc.securelevel ] && . /etc/rc.securelevel


Loading…
Cancel
Save