[PATCH] setuid: Operate relative to $(DESTDIR)

Kristian Høgsberg krh at bitplanet.net
Tue Jan 24 07:50:39 PST 2012


On Tue, Jan 24, 2012 at 4:29 AM, Benjamin Franzke
<benjaminfranzke at googlemail.com> wrote:

Oops, of course.  Thanks.
Kristian

> ---
>  src/Makefile.am |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/Makefile.am b/src/Makefile.am
> index 55600a2..cea7cd3 100644
> --- a/src/Makefile.am
> +++ b/src/Makefile.am
> @@ -24,8 +24,8 @@ weston_SOURCES =                      \
>
>  if ENABLE_SETUID_INSTALL
>  install-exec-hook:
> -       chown root $(bindir)/weston
> -       chmod u+s $(bindir)/weston
> +       chown root $(DESTDIR)$(bindir)/weston
> +       chmod u+s $(DESTDIR)$(bindir)/weston
>  endif
>
>  if ENABLE_XSERVER_LAUNCHER
> --
> 1.7.3.4
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list