fix permission checking on full file.
authorNathan Scott <nathans@sgi.com>
Mon, 9 Apr 2001 06:00:54 +0000 (06:00 +0000)
committerNathan Scott <nathans@sgi.com>
Mon, 9 Apr 2001 06:00:54 +0000 (06:00 +0000)
050

diff --git a/050 b/050
index 5e67eaa2d5c9c529a4925511b45eec77d86c4f60..fd94680246bc46fed14bc49695fed47cef5def11 100755 (executable)
--- a/050
+++ b/050
@@ -61,7 +61,9 @@ _cleanup()
        rm -f $tmp.*
 }
 trap "_cleanup; exit \$status" 0 1 2 3 15
-rm -f $seq.full $seq.out
+rm -f $seq.out
+cp /dev/null $seq.full
+chmod a+rwx $seq.full  # arbitrary users will write here
 
 _require_scratch
 _require_quota
@@ -74,7 +76,6 @@ fi
 # real QA test starts here
 mkfs -t xfs -f $SCRATCH_DEV | _filter_mkfs 2>$tmp.mkfs
 cat $tmp.mkfs >>$seq.full
-chmod a+w $seq.full    # arbitrary users will write here
 
 # keep the blocksize and data size for dd later
 . $tmp.mkfs