]> Cypherpunks repositories - gostls13.git/commit
cmd/ld: don't delete output binary if not "ordinary" file.
authorMike Andrews <mra@xoba.com>
Sat, 29 Mar 2014 16:50:49 +0000 (09:50 -0700)
committerIan Lance Taylor <iant@golang.org>
Sat, 29 Mar 2014 16:50:49 +0000 (09:50 -0700)
commitece69f7c2b34d9267f3802cd11c1e5fca84e5474
treee038c44aafd52d5163cd6141e34cf2bd3ced4aa6
parent2ca99505f6cfc1390b5b69eecb35e46d0e36456d
cmd/ld: don't delete output binary if not "ordinary" file.

e.g., don't delete /dev/null. this fix inspired by gnu libiberty,
unlink-if-ordinary.c.

Fixes #7563

LGTM=iant
R=golang-codereviews, iant, 0intro
CC=golang-codereviews, r
https://golang.org/cl/76810045
src/cmd/ld/lib.c