You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-arch/lbzip2/files/lbzip2-2.3-s_isreg.patch

17 lines
500 B

src/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/main.c b/src/main.c
index f030fd5..5f8290e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -702,7 +702,7 @@ input_init(const struct arg *operand, struct stat *sbuf)
return -1;
}
- if (OM_REGF == outmode && !S_ISREG(sbuf->st_mode)) {
+ if (!decompress && OM_REGF == outmode && !S_ISREG(sbuf->st_mode)) {
warn("skipping \"%s\": not a regular file", operand->val);
return -1;
}