Make install not remove the target file if -s has been specified but

stripping failed (since the file has been a shell script, for
example).

Closes PR # bin/645: "install -c -s" can't inst...

Submitted by:	hohmuth@inf.tu-dresden.de (Michael Hohmuth)
This commit is contained in:
Joerg Wunsch 1995-08-04 17:13:36 +00:00
parent 6aefd62078
commit 84be91cbaf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9911

View File

@ -311,7 +311,7 @@ strip(to_name)
execl(_PATH_STRIP, "strip", to_name, NULL);
err("%s: %s", _PATH_STRIP, strerror(errno));
default:
if (wait(&status) == -1 || status)
if (wait(&status) == -1)
(void)unlink(to_name);
}
}