diff options
author | Luis Chamberlain <mcgrof@kernel.org> | 2018-11-21 16:01:48 -0800 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2018-11-21 16:01:48 -0800 |
commit | 4dcafc85e12bf28f30ab00354bba187172b89e3f (patch) | |
tree | ef33ae5d317b7cebe8ed18e16998420171eaa8aa | |
parent | d0d549d1c3ca1684b56986ca7e5e73c5ff78a989 (diff) | |
download | crda-4dcafc85e12bf28f30ab00354bba187172b89e3f.tar.gz |
crda: be explicit about file permission on install
If you have a umask of 077 your library files won't be
accessible to non-root users. Fix that.
Reported-by: Lukas Pirl <mail@lukas-pirl.de>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -121,12 +121,12 @@ $(LIBREG): regdb.h reglib.h reglib.c install-libreg-headers: $(NQ) ' INSTALL libreg-headers' $(Q)mkdir -p $(DESTDIR)/$(INCLUDE_DIR) - $(Q)cp *.h $(DESTDIR)/$(INCLUDE_DIR)/ + $(Q)$(INSTALL) -m 644 *.h $(DESTDIR)/$(INCLUDE_DIR)/ install-libreg: $(NQ) ' INSTALL libreg' $(Q)mkdir -p $(DESTDIR)/$(LIBDIR) - $(Q)cp $(LIBREG) $(DESTDIR)/$(LIBDIR)/ + $(Q)$(INSTALL) -m 644 $(LIBREG) $(DESTDIR)/$(LIBDIR)/ $(Q)ldconfig %.o: %.c regdb.h $(LIBREG) |