From a410519ff54c4352ffa80eca68b2ad56b1bdc891 Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 20 Jan 1987 09:53:32 +0000 Subject: [PATCH] Bug fix Under the '-x' option, the archive was opened in "APPEND" mode. --- util/arch/archiver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1