From: ceriel Date: Tue, 20 Jan 1987 09:53:32 +0000 (+0000) Subject: Bug fix X-Git-Tag: release-5-5~4962 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=a410519ff54c4352ffa80eca68b2ad56b1bdc891;p=ack.git Bug fix Under the '-x' option, the archive was opened in "APPEND" mode. --- diff --git a/util/arch/archiver.c b/util/arch/archiver.c index 8e985854d..35efbfef9 100644 --- a/util/arch/archiver.c +++ b/util/arch/archiver.c @@ -264,7 +264,7 @@ register char *argv[]; int i = 0; int temp_fd, read_chars; - ar_fd = open_archive(argv[2], (show_fl || pr_fl) ? READ : APPEND); + ar_fd = open_archive(argv[2], (show_fl || pr_fl || ex_fl) ? READ : APPEND); if (rep_fl || del_fl #ifdef AAL || app_fl