SCCS-vsn: usr.bin/ar/replace.c 5.6
-static char sccsid[] = "@(#)replace.c 5.5 (Berkeley) %G%";
+static char sccsid[] = "@(#)replace.c 5.6 (Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
#include <unistd.h>
#include <ar.h>
#include <stdio.h>
#include <unistd.h>
#include <ar.h>
#include <stdio.h>
extern CHDR chdr; /* converted header */
extern char *archive; /* archive name */
extern CHDR chdr; /* converted header */
extern char *archive; /* archive name */
*/
mods = (options & (AR_A|AR_B));
for (err = 0, curfd = tfd1; get_header(afd);) {
*/
mods = (options & (AR_A|AR_B));
for (err = 0, curfd = tfd1; get_header(afd);) {
- if ((file = *argv) && files(argv)) {
+ if (*argv && (file = files(argv))) {
if ((sfd = open(file, O_RDONLY)) < 0) {
err = 1;
(void)fprintf(stderr, "ar: %s: %s.\n",
if ((sfd = open(file, O_RDONLY)) < 0) {
err = 1;
(void)fprintf(stderr, "ar: %s: %s.\n",