Formerly read.c.~68~
authorRoland McGrath <roland@redhat.com>
Mon, 25 Oct 1993 19:25:17 +0000 (19:25 +0000)
committerRoland McGrath <roland@redhat.com>
Mon, 25 Oct 1993 19:25:17 +0000 (19:25 +0000)
read.c

diff --git a/read.c b/read.c
index 21dc538..47e54ad 100644 (file)
--- a/read.c
+++ b/read.c
@@ -1537,7 +1537,11 @@ parse_file_seq (stringp, stopchar, size, strip)
            lastn = n;
            n = n->next;
          }
-       if (n != 0)
+       if (n != 0
+           /* Ignore something starting with `(', as that cannot actually
+              be an archive-member reference (and treating it as such
+              results in an empty file name, which causes much lossage).  */
+           && n->name[0] != '(')
          {
            /* N is the first element in the archive group.
               Its name looks like "lib(mem" (with no closing `)').  */