SCCS-vsn: usr.bin/ar/replace.c 5.8
-static char sccsid[] = "@(#)replace.c 5.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)replace.c 5.8 (Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
int err, exists, tfd1, tfd2;
char *rname();
int err, exists, tfd1, tfd2;
char *rname();
/*
* If doesn't exist, simply append to the archive. There's
* a race here, but it's pretty short, and not worth fixing.
/*
* If doesn't exist, simply append to the archive. There's
* a race here, but it's pretty short, and not worth fixing.
* all back together at the end.
*/
mods = (options & (AR_A|AR_B));
* all back together at the end.
*/
mods = (options & (AR_A|AR_B));
- for (err = 0, curfd = tfd1; get_arobj(afd);) {
+ for (curfd = tfd1; get_arobj(afd);) {
if (*argv && (file = files(argv))) {
if ((sfd = open(file, O_RDONLY)) < 0) {
err = 1;
if (*argv && (file = files(argv))) {
if ((sfd = open(file, O_RDONLY)) < 0) {
err = 1;