projects
/
debian
/
tar
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28b44cc
)
(dump_file0): Check for is_avoided_name() first. Fixes bug reported by Martin Lohmeier
author
Sergey Poznyakoff
<gray@gnu.org.ua>
Mon, 13 Jun 2005 19:09:45 +0000
(19:09 +0000)
committer
Sergey Poznyakoff
<gray@gnu.org.ua>
Mon, 13 Jun 2005 19:09:45 +0000
(19:09 +0000)
src/create.c
patch
|
blob
|
history
diff --git
a/src/create.c
b/src/create.c
index 4edf4882155cab8894530eacf4d2bbc580985154..c9be71cf6587d6a3150cc24e0895aad4a9611a90 100644
(file)
--- 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. */