diff options
author | Derek Foreman <derekf@osg.samsung.com> | 2015-04-10 11:55:27 -0500 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2015-04-13 09:52:16 +0300 |
commit | 6d11679843a4fdf369da13142cce67875115dc31 (patch) | |
tree | 9ea1f4cdba94fbabb33fea4f3d9c231b46204082 | |
parent | 9a0b2b54e2242af0371c98e00e1d3ea0a70064a1 (diff) | |
download | weston-6d11679843a4fdf369da13142cce67875115dc31.tar.gz weston-6d11679843a4fdf369da13142cce67875115dc31.tar.bz2 weston-6d11679843a4fdf369da13142cce67875115dc31.zip |
build: fix setuid check
At least in some shells test needs 3 arguments for string comparison
if test $foo=yes ...
will always be true.
if test $foo = yes ...
will perform a string comparison.
Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-By: Giulio Camuffo <giuliocamuffo@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-rw-r--r-- | Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index c1347b86..2f16fac4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -165,7 +165,7 @@ install-exec-hook: chown root $(DESTDIR)$(bindir)/weston-launch \ && chmod u+s $(DESTDIR)$(bindir)/weston-launch \ && can_suid_files=yes;\ - if test $$can_suid_files=no; then \ + if test $$can_suid_files = no; then \ echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \ echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \ false; \ |