Merge "BuildSystem: Avoid $EUID and use id -u instead." into 13

certified/13.21
Jenkins2 7 years ago committed by Gerrit Code Review
commit 9193f2dd79

@ -625,7 +625,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" ;\

Loading…
Cancel
Save