Skip to content

Commit 702189b

Browse files
committed
Don't run ldconfig unless we are root.
1 parent 358342b commit 702189b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cups/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ install: all $(INSTALL_STATIC)
290290
if test $(LIBCUPS) = "libcups.so.3" -o $(LIBCUPS) = "libcups3.so.3"; then \
291291
$(RM) $(BUILDROOT)$(libdir)/`basename $(LIBCUPS) .3`; \
292292
$(LN) $(LIBCUPS) $(BUILDROOT)$(libdir)/`basename $(LIBCUPS) .3`; \
293-
test -x /usr/sbin/ldconfig && /usr/sbin/ldconfig; \
293+
test x`id -u` = x0 -a -x /usr/sbin/ldconfig && /usr/sbin/ldconfig; \
294294
fi
295295
if test $(LIBCUPS) = "libcups.3.dylib" -o $(LIBCUPS) = "libcups3.3.dylib"; then \
296296
$(RM) $(BUILDROOT)$(libdir)/`basename $(LIBCUPS) .3.dylib`.dylib; \

0 commit comments

Comments
 (0)