1
0
mirror of https://github.com/golang/go synced 2024-11-21 20:14:52 -07:00

gopack: fix prefix bug

When prefix doesn't match, was deleting entire .6 file.

R=dsymonds
CC=golang-dev
https://golang.org/cl/4427041
This commit is contained in:
Russ Cox 2011-04-14 23:34:14 -04:00
parent 91dfae756e
commit 89fc2c8f4f

View File

@ -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