install(1): correction after r363064

Make it not break if STRIPBIN points to strip version without -o support.
In that case, perform extra copy just like before r363064.

MFC after:	1 month
X-MFC-With:	363064
This commit is contained in:
Eugene Grosbein 2020-07-10 00:45:34 +00:00
parent 423a033ba7
commit 8ce741ca77
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363067

View File

@ -863,7 +863,7 @@ install(const char *from_name, const char *to_name, u_long fset, u_int flags)
if (dostrip)
stripped = strip(tempcopy ? tempfile : to_name,
from_name, &digestresult);
else
if (!stripped)
digestresult = copy(from_fd, from_name, to_fd,
tempcopy ? tempfile : to_name, from_sb.st_size);
}