Bug fix
authorceriel <none@none>
Tue, 20 Jan 1987 09:53:32 +0000 (09:53 +0000)
committerceriel <none@none>
Tue, 20 Jan 1987 09:53:32 +0000 (09:53 +0000)
Under the '-x' option, the archive was opened in "APPEND" mode.

util/arch/archiver.c

index 8e98585..35efbfe 100644 (file)
@@ -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