summaryrefslogtreecommitdiffstats
path: root/util/wretch_man.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/wretch_man.c')
-rw-r--r--util/wretch_man.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/wretch_man.c b/util/wretch_man.c
index f5e1cfb4..39b91aba 100644
--- a/util/wretch_man.c
+++ b/util/wretch_man.c
@@ -48,6 +48,9 @@ int transman(char *fname, char *newpath)
return -1;
while (read(fd, &whdr, sizeof(whdr)) == sizeof(whdr)) {
+ if (strcmp(whdr.xname, "..") == 0 || strchr(whdr.xname, '/'))
+ continue;
+
if (!(whdr.xmode & 0xffff0000)) {
/* article */
stampfile(newpath, &fhdr);