Remove just-installed su, if unable to make it set-UID root.
authorJim Meyering <meyering@redhat.com>
Sun, 2 Dec 2007 15:19:04 +0000 (16:19 +0100)
committerJim Meyering <meyering@redhat.com>
Sun, 2 Dec 2007 15:19:04 +0000 (16:19 +0100)
commit6bbbf0314e80427c3d58fbd3f4cec0cf727813d9
treea73100b453f590b254c5cce906f2a4f6244131aa
parent5891814f343695b5de6a858a154ad142516b56b5
Remove just-installed su, if unable to make it set-UID root.

Normally, su isn't even installed.  However, if you configure with
--enable-install-program=su, and then install with insufficient
privileges, we now make sure to remove the just-installed binary.
* src/Makefile.am (install-exec-hook): Rename from install-exec-local,
so that this rule is guaranteed to be run *after* installation.
If unable to chown and chmod the installed "su" program, remove it.
Reported by Greg Schaefer.
ChangeLog
src/Makefile.am