From: Jaroslav Škarvada Date: Fri, 8 Jan 2021 01:45:24 +0000 (+0100) Subject: Install with standard permissions (#221) X-Git-Tag: ppp-2.5.0~101 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=c6869931feed37330a96715fecc0c2c75f3f5dc0;hp=1f9aa2c6d216d4de06481e07f7109e8aa50ddb67 Install with standard permissions (#221) In Fedora it's installed with standard permissions for years. Signed-off-by: Jaroslav Škarvada --- diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux index ff7a051..312580b 100644 --- a/pppd/Makefile.linux +++ b/pppd/Makefile.linux @@ -241,10 +241,10 @@ all: $(TARGETS) install: pppd mkdir -p $(BINDIR) $(MANDIR) $(EXTRAINSTALL) - $(INSTALL) -c -m 555 pppd $(BINDIR)/pppd + $(INSTALL) -c -m 755 pppd $(BINDIR)/pppd if chgrp pppusers $(BINDIR)/pppd 2>/dev/null; then \ chmod o-rx,u+s $(BINDIR)/pppd; fi - $(INSTALL) -c -m 444 pppd.8 $(MANDIR) + $(INSTALL) -c -m 644 pppd.8 $(MANDIR) pppd: $(PPPDOBJS) $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_PLUGIN) -o pppd $(PPPDOBJS) $(LIBS) diff --git a/pppd/plugins/pppoatm/Makefile.linux b/pppd/plugins/pppoatm/Makefile.linux index d3a8086..970eee1 100644 --- a/pppd/plugins/pppoatm/Makefile.linux +++ b/pppd/plugins/pppoatm/Makefile.linux @@ -38,7 +38,7 @@ $(PLUGIN): $(PLUGIN_OBJS) install: all $(INSTALL) -d -m 755 $(LIBDIR) - $(INSTALL) -c -m 4550 $(PLUGIN) $(LIBDIR) + $(INSTALL) -c -m 755 $(PLUGIN) $(LIBDIR) clean: rm -f *.o *.so diff --git a/pppd/plugins/pppoe/Makefile.linux b/pppd/plugins/pppoe/Makefile.linux index c415ce3..6d2469f 100644 --- a/pppd/plugins/pppoe/Makefile.linux +++ b/pppd/plugins/pppoe/Makefile.linux @@ -42,11 +42,11 @@ pppoe.so: plugin.o discovery.o if.o common.o install: all $(INSTALL) -d -m 755 $(LIBDIR) - $(INSTALL) -c -m 4550 pppoe.so $(LIBDIR) + $(INSTALL) -c -m 755 pppoe.so $(LIBDIR) # Symlink for backward compatibility $(LN_S) pppoe.so $(LIBDIR)/rp-pppoe.so $(INSTALL) -d -m 755 $(BINDIR) - $(INSTALL) -c -m 555 pppoe-discovery $(BINDIR) + $(INSTALL) -c -m 755 pppoe-discovery $(BINDIR) clean: rm -f *.o *.so pppoe-discovery