Both aal and arch can read each others archives

This commit is contained in:
ceriel 1991-03-20 12:45:58 +00:00
parent 1e32111a32
commit 2a27456795

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;