entered into RCS
authorRoland McGrath <roland@redhat.com>
Wed, 16 Feb 1994 21:32:01 +0000 (21:32 +0000)
committerRoland McGrath <roland@redhat.com>
Wed, 16 Feb 1994 21:32:01 +0000 (21:32 +0000)
arscan.c
default.c

index f3bb3ce9ad1d1d2706881f4a6d49c2cc531975dd..da9428de01817828cc69270ae721e00a20acfbcf 100644 (file)
--- a/arscan.c
+++ b/arscan.c
@@ -1,5 +1,5 @@
 /* Library function for scanning an archive file.
-   Copyright (C) 1987, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
+   Copyright (C) 1987, 89, 91, 92, 93, 94 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -428,7 +428,13 @@ ar_name_equal (name, mem, truncated)
 #else
       struct ar_hdr hdr;
       return !strncmp (name, mem,
-                      sizeof (hdr.ar_name) - 1);
+                      sizeof (hdr.ar_name) - 
+#ifndef __hpux
+                      1
+#else
+                      2
+#endif /* __hpux */
+                      );
 #endif
     }
 
index 3465c538a1d5bd0b8247c45502e79ed491bd7f44..c8502a9b7cd45da24859d11f0c35dfff0cff81ff 100644 (file)
--- a/default.c
+++ b/default.c
@@ -195,7 +195,13 @@ static char *default_suffix_rules[] =
 static char *default_variables[] =
   {
     "AR", "ar",
+#ifndef __hpux
     "ARFLAGS", "rv",
+#else
+    /* HPUX ar's f flag says to truncate the file names to archive member
+       name length in comparisons, so replacement notices the equality.  */
+    "ARFLAGS", "rfv",
+#endif
     "AS", "as",
     "CC", "cc",
     "CXX", "g++",