]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix postinst find command that chowns stuff to the right user. Find does weird thing...
authorPeter Palfrader <peter@palfrader.org>
Sun, 3 Feb 2008 17:18:35 +0000 (17:18 +0000)
committerPeter Palfrader <peter@palfrader.org>
Sun, 3 Feb 2008 17:18:35 +0000 (17:18 +0000)
svn:r13364

debian/changelog
debian/tor.postinst

index 769b77bd588afff4f0a66fa7fbe10d53958dfb04..bfd9c5f14f55b7e7f9a776c1d46a4e89b5fd5223 100644 (file)
@@ -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@debian.org>  Sat,  2 Feb 2008 15:13:17 +0100
+ -- Peter Palfrader <weasel@debian.org>  Sun,  3 Feb 2008 18:17:16 +0100
 
 tor (0.2.0.18-alpha-1) experimental; urgency=low
 
index 70b14eec9a7660f8f6baea3128f0c542e628d4de..7d607b6e68e33a4d8ea408541c0eaf0bd3f2d126 100644 (file)
@@ -39,15 +39,15 @@ for i in lib run log; do
        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