mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-27 23:06:54 +00:00
Formerly arscan.c.~22~
This commit is contained in:
parent
37fbe2a271
commit
ade465512f
1 changed files with 17 additions and 14 deletions
9
arscan.c
9
arscan.c
|
@ -283,9 +283,6 @@ ar_name_equal (name, mem)
|
|||
char *name, *mem;
|
||||
{
|
||||
char *p;
|
||||
unsigned int namelen, memlen;
|
||||
struct ar_hdr h;
|
||||
unsigned int max = sizeof (h.ar_name);
|
||||
|
||||
p = rindex (name, '/');
|
||||
if (p != 0)
|
||||
|
@ -293,9 +290,14 @@ ar_name_equal (name, mem)
|
|||
|
||||
#if !defined (AIAMAG) && !defined (APOLLO)
|
||||
|
||||
{
|
||||
/* `reallylongname.o' matches `reallylongnam.o'.
|
||||
If member names have a trailing slash, that's `reallylongna.o'. */
|
||||
|
||||
struct ar_hdr h;
|
||||
unsigned int max = sizeof (h.ar_name);
|
||||
unsigned int namelen, memlen;
|
||||
|
||||
if (strncmp (name, mem, max - 3))
|
||||
return 0;
|
||||
|
||||
|
@ -307,6 +309,7 @@ ar_name_equal (name, mem)
|
|||
return 1;
|
||||
|
||||
return !strcmp (name + max - 3, mem + max - 3);
|
||||
}
|
||||
|
||||
#else /* AIX or APOLLO. */
|
||||
|
||||
|
|
Loading…
Reference in a new issue