[arch-commits] Commit in filesystem/trunk (filesystem.install)

Dave Reisner dreisner at archlinux.org
Tue Jun 5 10:07:09 UTC 2012


    Date: Tuesday, June 5, 2012 @ 06:07:09
  Author: dreisner
Revision: 160770

avoid attempt to chown a possibly dangling symlink

Modified:
  filesystem/trunk/filesystem.install

--------------------+
 filesystem.install |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: filesystem.install
===================================================================
--- filesystem.install	2012-06-05 09:29:16 UTC (rev 160769)
+++ filesystem.install	2012-06-05 10:07:09 UTC (rev 160770)
@@ -1,11 +1,11 @@
 post_install() {
 	[ -f var/log/lastlog ] ||  : >var/log/lastlog
 	[ -f var/log/wtmp ]    ||  : >var/log/wtmp
-	[ -f var/log/btmp ]    || (: >var/log/btmp && chmod 600 var/log/btmp)
+	[ -f var/log/btmp ]    || {: >var/log/btmp && chmod 600 var/log/btmp; }
 	# workaround for bug #7194
 	# readded due to bug #9465
 	# please do not remove!
-	chmod 1777 var/spool/mail tmp var/tmp var/lock
+	chmod 1777 var/spool/mail tmp var/tmp
 }
 
 # args: <group> [options]




More information about the arch-commits mailing list