]> arthur.barton.de Git - bup.git/commitdiff
Handle the possibility of a sgid/suid parent dir in one of the meta tests.
authorRob Browning <rlb@defaultvalue.org>
Fri, 27 Jul 2012 17:04:35 +0000 (12:04 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 22 Dec 2012 19:32:13 +0000 (13:32 -0600)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
t/test-meta.sh

index 55c363d8361eacdf63d74849e7232adf73ec1718..06e06ace4d668c7a5d1b7e73ea20f8d967b14107 100755 (executable)
@@ -273,6 +273,7 @@ WVSTART 'meta --edit'
     mkdir "$TOP/bupmeta.tmp"
     cd "$TOP/bupmeta.tmp"
     touch src
+    chown 0:0 src # In case the parent dir is sgid, etc.
     WVPASS bup meta -cf src.meta src
 
     mkdir dest