[comp.os.minix] Bug in ar.c, and the fix

martin@minster.UUCP (03/25/87)

Ar(1) refuses to extract a file from an archive which it cannot open
for writing, with the message `can't create <library>'.

This can be fixed by changing line 244 from
  ar_fd = open_archive(argv[2], (show_fl || pr_fl) ? READ : APPEND);
to
  ar_fd = open_archive(argv[2], (show_fl || ex_fl || pr_fl) ? READ : APPEND);

	Martin

usenet: mcvax!ukc!minster!martin
surface:
	Martin C. Atkins
	Department of Computer Science
	University of York
	Heslington
	York Y01 5DD
	ENGLAND