From: Sergey Poznyakoff Date: Mon, 13 Jun 2005 19:09:45 +0000 (+0000) Subject: (dump_file0): Check for is_avoided_name() first. Fixes bug reported by Martin Lohmeier X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=c6cde895e342171d76ce895e06a1afc65897f726;p=chaz%2Ftar (dump_file0): Check for is_avoided_name() first. Fixes bug reported by Martin Lohmeier --- diff --git a/src/create.c b/src/create.c index 4edf488..c9be71c 100644 --- a/src/create.c +++ b/src/create.c @@ -1414,6 +1414,8 @@ dump_file0 (struct tar_stat_info *st, char *p, return; } + if (is_avoided_name (p)) + return; if (S_ISDIR (st->stat.st_mode)) { dump_dir (st, top_level, parent_device); @@ -1421,8 +1423,6 @@ dump_file0 (struct tar_stat_info *st, char *p, utime (p, &restore_times); return; } - else if (is_avoided_name (p)) - return; else { /* Check for multiple links. */