lift block alignment requirement for tar archive rescue
[python-delta-tar] / testing / test_recover.py
index f2147dd..6e8ab99 100644 (file)
@@ -156,7 +156,7 @@ def corrupt_leading_garbage (_, fname, compress, encrypt):
     assert os.lseek (infd, 0, os.SEEK_SET) == 0
     outfd = os.open (os.path.dirname (aname), os.O_WRONLY | os.O_TMPFILE,
                      stat.S_IRUSR | stat.S_IWUSR)
-    junk  = os.urandom (512) # tar block sized
+    junk  = os.urandom (42)
 
     # write new file with garbage prepended
     done = 0