mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-01-31 03:25:08 +00:00
Formerly arscan.c.~25~
This commit is contained in:
parent
c76d6785de
commit
781ce7f4a8
1 changed files with 5 additions and 1 deletions
6
arscan.c
6
arscan.c
|
@ -308,12 +308,16 @@ ar_name_equal (name, mem)
|
|||
|
||||
namelen = strlen (name);
|
||||
memlen = strlen (mem);
|
||||
|
||||
if (namelen > memlen && memlen >= max - 1
|
||||
&& name[namelen - 2] == '.' && name[namelen - 1] == 'o'
|
||||
&& mem[memlen - 2] == '.' && mem[memlen - 1] == 'o')
|
||||
return 1;
|
||||
|
||||
return !strcmp (name + max - 3, mem + max - 3);
|
||||
if (namelen != memlen)
|
||||
return 0;
|
||||
|
||||
return (namelen < max - 3 || !strcmp (name + max - 3, mem + max - 3));
|
||||
}
|
||||
|
||||
#else /* AIX or APOLLO. */
|
||||
|
|
Loading…
Reference in a new issue