]> Dogcows Code - chaz/tar/blobdiff - src/create.c
(dump_file0): Restore file_count_links,accidentally removed on 2005-11-29.
[chaz/tar] / src / create.c
index 7955e6b118bc9bb97e5648cc5da25ff1938618df..41726613fcb92e86c54beeff5fcf9b894f9ffaa7 100644 (file)
@@ -128,7 +128,6 @@ to_chars_subst (int negative, int gnu_format, uintmax_t value, size_t valsize,
   char const *minval_string;
   char const *maxval_string = STRINGIFY_BIGINT (maxval, maxbuf);
   char const *value_string;
-  char *p;
     
   if (gnu_format)
     {
@@ -163,11 +162,12 @@ to_chars_subst (int negative, int gnu_format, uintmax_t value, size_t valsize,
       WARN ((0, 0, _("value %s out of %s range %s..%s; substituting %s"),
             value_string, type, minval_string, maxval_string,
             sub_string));
-      to_chars (negsub, s, valsize, 0, where, size, type);
+      return to_chars (negsub, s, valsize, 0, where, size, type);
     }
   else
     ERROR ((0, 0, _("value %s out of %s range %s..%s"),
            value_string, type, minval_string, maxval_string));
+  return false;
 }
 
 /* Convert NEGATIVE VALUE (which was originally of size VALSIZE) to
@@ -1520,6 +1520,8 @@ dump_file0 (struct tar_stat_info *st, char const *p,
              abort ();
            }
 
+         file_count_links (st);
+         
          ok = status == dump_status_ok;
        }
 
This page took 0.020789 seconds and 4 git commands to generate.