From f4d4137fc73518496f2b737d9b401e1def78c482 Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Tue, 8 Oct 2013 13:30:41 +0300 Subject: Makefile: restricted permissions for user database file --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index aa55e64..18e9c64 100644 --- a/Makefile +++ b/Makefile @@ -14,12 +14,12 @@ all: install define _copy = install -d $$(dir $$@) - install -m 644 $$< $$@ + install -m $(if $(1),$(1),644) $$< $$@ endef define copy = $(ROOT_DIR)/$(2)/$(3): $(1)/$(3) -$(call _copy) +$(call _copy,$(4)) files += $(2)/$(3) endef @@ -47,7 +47,7 @@ $(ROOT_DIR)/$(luadir)/modules: install -d $@ $(eval $(call link,config,$(confdir))) -$(eval $(call copy,config,$(confdir),aaa.json)) +$(eval $(call copy,config,$(confdir),aaa.json,600)) $(eval $(call copy,.,$(resdir),LICENSE)) -- cgit v1.2.3