summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins2 <jenkins2@gerrit.asterisk.org>2018-01-18 19:31:20 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2018-01-18 19:31:20 -0600
commit51313e304e9dd57342a9b5715b8a1ce908d0674e (patch)
tree628e1e66bf8d342c6330a7dc01ff9eca502e4339
parent193bdfe5f0e479a1c130f052320df37d2eb330d1 (diff)
parenta046305faedeba6b22601c8dca286b8e8f763a14 (diff)
Merge "BuildSystem: Avoid $EUID and use id -u instead."
-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" ;\