From b662b836480949271fefdb25729b8a9de3172731 Mon Sep 17 00:00:00 2001 From: Koji Arai Date: Sat, 7 May 2016 15:00:10 +0900 Subject: [PATCH] Should not create symlinks in `lha p' command. --- src/lhext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lhext.c b/src/lhext.c index 38447c2..8163516 100644 --- a/src/lhext.c +++ b/src/lhext.c @@ -482,7 +482,7 @@ extract_one(afp, hdr) || (hdr->unix_mode & UNIX_FILE_TYPEMASK) == UNIX_FILE_SYMLINK || method == LZHDIRS_METHOD_NUM) { /* ↑これで、Symbolic Link は、大丈夫か? */ - if (!ignore_directory && !verify_mode) { + if (!ignore_directory && !verify_mode && !output_to_stdout) { if (noexec) { if (quiet != TRUE) printf("EXTRACT %s (directory)\n", name); @@ -527,7 +527,7 @@ extract_one(afp, hdr) #endif } else { /* make directory */ - if (!output_to_stdout && !make_parent_path(name)) + if (!make_parent_path(name)) return read_size; /* save directory information */ add_dirinfo(name, hdr); -- 2.11.0