[PATCH] rc.sysinit: condense calls to mkdir and chmod

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



---
 rc.sysinit |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/rc.sysinit b/rc.sysinit
index f7df48c..bee4efb 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -276,8 +276,7 @@ stat_busy "Removing Leftover Files"
 : >| /var/run/utmp
 /bin/chmod 0664 /var/run/utmp
 # Keep {x,k,g}dm happy with xorg
-/bin/mkdir /tmp/.ICE-unix && /bin/chmod 1777 /tmp/.ICE-unix
-/bin/mkdir /tmp/.X11-unix && /bin/chmod 1777 /tmp/.X11-unix
+/bin/mkdir -m1777 /tmp/.{X11,ICE}-unix
 stat_done
 
 #status "Updating Shared Library Links" /sbin/ldconfig
-- 
1.7.2.3



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux