X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fincremen.c;h=d73a7bb9fc42175a966735f71f9d3e20c57bb8d6;hb=HEAD;hp=884d2fa2865831ad3a8ffec73aa617872324fa33;hpb=45ccda119355a1087450039a250359c1d0de0d08;p=chaz%2Ftar diff --git a/src/incremen.c b/src/incremen.c index 884d2fa..d73a7bb 100644 --- a/src/incremen.c +++ b/src/incremen.c @@ -734,6 +734,8 @@ scan_directory (struct tar_stat_info *st) if (! dirp) savedir_error (dir); + info_attach_exclist (st); + tmp = xstrdup (dir); zap_slashes (tmp); @@ -762,7 +764,7 @@ scan_directory (struct tar_stat_info *st) if (*entry == 'I') /* Ignored entry */ *entry = 'N'; - else if (excluded_name (full_name)) + else if (excluded_name (full_name, st)) *entry = 'N'; else { @@ -1153,11 +1155,14 @@ read_num (FILE *fp, char const *fieldname, } if (c) - FATAL_ERROR ((0, 0, - _("%s: byte %s: %s %s followed by invalid byte 0x%02x"), - quotearg_colon (listed_incremental_option), - offtostr (ftello (fp), offbuf), - fieldname, buf, c)); + { + unsigned uc = c; + FATAL_ERROR ((0, 0, + _("%s: byte %s: %s %s followed by invalid byte 0x%02x"), + quotearg_colon (listed_incremental_option), + offtostr (ftello (fp), offbuf), + fieldname, buf, uc)); + } *pval = strtosysint (buf, NULL, min_val, max_val); conversion_errno = errno; @@ -1539,9 +1544,10 @@ dumpdir_ok (char *dumpdir) { if (expect && *p != expect) { + unsigned char uc = *p; ERROR ((0, 0, _("Malformed dumpdir: expected '%c' but found %#3o"), - expect, *p)); + expect, uc)); return false; } switch (*p) @@ -1576,7 +1582,7 @@ dumpdir_ok (char *dumpdir) if (expect != 'T') { ERROR ((0, 0, - _("Malformed dumpdir: 'T' not preceeded by 'R'"))); + _("Malformed dumpdir: 'T' not preceded by 'R'"))); return false; } if (p[1] == 0 && !has_tempdir)