summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlexander Traud <pabstraud@compuserve.com>2018-01-16 13:34:23 +0100
committerAlexander Traud <pabstraud@compuserve.com>2018-01-16 13:34:23 +0100
commita046305faedeba6b22601c8dca286b8e8f763a14 (patch)
tree5a834ce4ce1d488c7ec08f94e5ea5aebb5daac00 /Makefile
parent6f1f16d88720db2f0c29f323dce2ba065cb0c9ce (diff)
BuildSystem: Avoid $EUID and use id -u instead.
Makefile included a call to ${EUID} which requires the shell bash. To keep compatibility with other shells like dash or ksh, use id -u instead. ASTERISK-27589 Change-Id: Ia6e74f5bc9aab4e6dc62b7439f647b7964e6f657
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index afd50c3cc..6bc63a1a8 100644
--- a/Makefile
+++ b/Makefile
@@ -624,7 +624,7 @@ oldmodcheck:
ld-cache-update:
ifneq ($(LDCONFIG),)
ifeq ($(DESTDIR),) # DESTDIR means binary archive creation; ldconfig should be run on postinst
- @if [ $${EUID} -eq 0 ] ; then \
+ @if [ $$(id -u) -eq 0 ] ; then \
$(LDCONFIG) "$(ASTLIBDIR)/" ; \
else \
echo " WARNING WARNING WARNING" ;\