From 89fc2c8f4ff3c0b59f1a5744e6c436c6b378d770 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 14 Apr 2011 23:34:14 -0400 Subject: [PATCH] gopack: fix prefix bug When prefix doesn't match, was deleting entire .6 file. R=dsymonds CC=golang-dev https://golang.org/cl/4427041 --- src/cmd/gopack/ar.c | 4 ++++ 1 file changed, 4 insertions(+) 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