]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When calling strip, temporarily close the file, call strip and then
authorpeter <peter@FreeBSD.org>
Sun, 14 Sep 1997 08:21:44 +0000 (08:21 +0000)
committerpeter <peter@FreeBSD.org>
Sun, 14 Sep 1997 08:21:44 +0000 (08:21 +0000)
commit7f77a9386baac6ec9e2db5c44bff263b9a75732f
tree3b66cd49d31cc78334e8ce1ece7b863a8693c70f
parentc9a685a905aff9932fa3b84b4b34ead5c2b4b985
When calling strip, temporarily close the file, call strip and then
reopen it after strip has finished.  This makes it work when
/usr/bin/strip replaces the file rather than doing an in-place edit
(such as the binutils-2.8 strip, which is a variation of objcopy).
This is necessary if install(1) and strip(1) are going to cooperate
on an ELF system.
usr.bin/xinstall/xinstall.c