X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fcreate.c;h=fdfc6d3b64fd0f61f161a3af057073523736ae44;hb=0a42307c1d7a8764754d29d787a2c423eaf79225;hp=a701c5a0807918b00238f146f966907a24d76d74;hpb=8e8acfbc97574b9313dea279ce53e5c9fa93cb1f;p=chaz%2Ftar diff --git a/src/create.c b/src/create.c index a701c5a..fdfc6d3 100644 --- a/src/create.c +++ b/src/create.c @@ -1478,9 +1478,10 @@ Read error at byte %s, reading %lu bytes, in file %s"), while (entry = readdir (directory), entry) { - /* Skip `.' and `..'. */ + /* Skip `.', `..', and excluded file names. */ - if (is_dot_or_dotdot (entry->d_name)) + if (is_dot_or_dotdot (entry->d_name) + || excluded_filename (excluded, entry->d_name)) continue; if ((int) NAMLEN (entry) + len >= buflen) @@ -1495,8 +1496,6 @@ Read error at byte %s, reading %lu bytes, in file %s"), #endif } strcpy (namebuf + len, entry->d_name); - if (exclude_option && check_exclude (namebuf)) - continue; dump_file (namebuf, our_device, 0); }