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:
parent
6aefd62078
commit
84be91cbaf
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user