Both aal and arch can read each others archives

This commit is contained in:
ceriel 1991-03-20 12:45:58 +00:00
parent d32109c18d
commit 5c3b708636

View file

@ -161,7 +161,7 @@ register int mode;
}
lseek(fd, 0L, 0);
magic = rd_unsigned2(fd);
if (magic != MAGIC_NUMBER)
if (magic != AALMAG && magic != ARMAG)
error(TRUE, "%s is not in ar format\n", name);
return fd;