fixes compatiblity with GNU tar's version of ustar

Sun, 03 Jun 2018 12:02:31 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 03 Jun 2018 12:02:31 +0200
changeset 406
36333e8a9411
parent 405
6b85d745e402
child 407
9505224d2fd2

fixes compatiblity with GNU tar's version of ustar

dav/tar.c file | annotate | diff | comparison | revisions
--- a/dav/tar.c	Sat Jun 02 16:25:01 2018 +0200
+++ b/dav/tar.c	Sun Jun 03 12:02:31 2018 +0200
@@ -258,7 +258,7 @@
     }
     
     // get size
-    if(h.size[11] != ' ') {
+    if(!(h.size[11] == ' ' || h.size[11] == 0)) {
         return NULL;
     }
     long long int size = strtoll(h.size, NULL, 8);

mercurial