(dump_file0): Check for is_avoided_name() first. Fixes bug reported by Martin Lohmeier
This commit is contained in:
@@ -1414,6 +1414,8 @@ dump_file0 (struct tar_stat_info *st, char *p,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_avoided_name (p))
|
||||||
|
return;
|
||||||
if (S_ISDIR (st->stat.st_mode))
|
if (S_ISDIR (st->stat.st_mode))
|
||||||
{
|
{
|
||||||
dump_dir (st, top_level, parent_device);
|
dump_dir (st, top_level, parent_device);
|
||||||
@@ -1421,8 +1423,6 @@ dump_file0 (struct tar_stat_info *st, char *p,
|
|||||||
utime (p, &restore_times);
|
utime (p, &restore_times);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (is_avoided_name (p))
|
|
||||||
return;
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Check for multiple links. */
|
/* Check for multiple links. */
|
||||||
|
|||||||
Reference in New Issue
Block a user