diff --git a/src/cmd/gopack/ar.c b/src/cmd/gopack/ar.c index dc3899f375a..33a2791bb6c 100644 --- a/src/cmd/gopack/ar.c +++ b/src/cmd/gopack/ar.c @@ -1676,6 +1676,10 @@ arread_cutprefix(Biobuf *b, Armember *bp) offset = o; } } + } else { + // didn't find the whole prefix. + // give up and let it emit the entire name. + inprefix = nil; } // copy instructions