[or-cvs] r13364: Fix postinst find command that chowns stuff to the right use (tor/trunk/debian)
weasel at seul.org
weasel at seul.org
Sun Feb 3 17:18:35 UTC 2008
Author: weasel
Date: 2008-02-03 12:18:35 -0500 (Sun, 03 Feb 2008)
New Revision: 13364
Modified:
tor/trunk/debian/changelog
tor/trunk/debian/tor.postinst
Log:
Fix postinst find command that chowns stuff to the right user. Find does weird things in the presence of !.
Modified: tor/trunk/debian/changelog
===================================================================
--- tor/trunk/debian/changelog 2008-02-02 21:16:00 UTC (rev 13363)
+++ tor/trunk/debian/changelog 2008-02-03 17:18:35 UTC (rev 13364)
@@ -1,11 +1,11 @@
-tor (0.2.0.18-alpha+svn-1) experimental; urgency=low
+tor (0.2.0.18-alpha-2) experimental; urgency=low
- * 13351 + log
- *
* Work around fig2dev failing to build the images on mipsel like we do on
sparc and s390 (re #457568)
+ * Fix postinst find command that chowns stuff to the right user. Find
+ does weird things in the presence of !.
- -- Peter Palfrader <weasel at debian.org> Sat, 2 Feb 2008 15:13:17 +0100
+ -- Peter Palfrader <weasel at debian.org> Sun, 3 Feb 2008 18:17:16 +0100
tor (0.2.0.18-alpha-1) experimental; urgency=low
Modified: tor/trunk/debian/tor.postinst
===================================================================
--- tor/trunk/debian/tor.postinst 2008-02-02 21:16:00 UTC (rev 13363)
+++ tor/trunk/debian/tor.postinst 2008-02-03 17:18:35 UTC (rev 13364)
@@ -39,15 +39,15 @@
fi
done
-find /var/lib/tor ! -user debian-tor -o ! -group debian-tor -print0 | xargs -0 --no-run-if-empty chown debian-tor:debian-tor
+find /var/lib/tor \( \( ! -user debian-tor \) -o \( ! -group debian-tor \) \) -print0 | xargs -0 --no-run-if-empty chown debian-tor:debian-tor
find /var/lib/tor -type d -print0 | xargs -0 --no-run-if-empty chmod 02700
find /var/lib/tor -type f -print0 | xargs -0 --no-run-if-empty chmod 00600
-find /var/run/tor ! -user debian-tor -o ! -group debian-tor -print0 | xargs -0 --no-run-if-empty chown debian-tor:debian-tor
+find /var/run/tor \( \( ! -user debian-tor \) -o \( ! -group debian-tor \) \) -print0 | xargs -0 --no-run-if-empty chown debian-tor:debian-tor
find /var/run/tor -type d -print0 | xargs -0 --no-run-if-empty chmod 02750
find /var/run/tor -type f -print0 | xargs -0 --no-run-if-empty chmod 00600
-find /var/log/tor ! -user debian-tor -o ! -group adm -print0 | xargs -0 --no-run-if-empty chown debian-tor:adm
+find /var/log/tor \( \( ! -user debian-tor \) -o \( ! -group adm \) \) -print0 | xargs -0 --no-run-if-empty chown debian-tor:adm
find /var/log/tor -type d -print0 | xargs -0 --no-run-if-empty chmod 02750
find /var/log/tor -type f -print0 | xargs -0 --no-run-if-empty chmod 00640
More information about the tor-commits
mailing list