This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] Fix for nss/db-Makefile


1998-12-18  Joel Klecker  <espy@debian.org>

	* nss/db-Makefile: ($(VARDB)/shadow.db): Give database correct 
	ownership and permissions. Use umask so the database is never world 
	readable.
	
Index: nss/db-Makefile
===================================================================
RCS file: /glibc/cvsfiles/libc/nss/db-Makefile,v
retrieving revision 1.7
diff -u -r1.7 db-Makefile
--- db-Makefile	1998/01/24 06:16:17	1.7
+++ db-Makefile	1998/12/18 23:16:42
@@ -111,7 +111,9 @@
 		 /^[ \t]*#/ { next } \
 		 { printf "0%u ", cnt++; print } \
 		 /^[^#]/ { printf ".%s ", $$1; print }' $^ | \
-	$(MAKEDB) -o $@ -
+	(umask 000 && $(MAKEDB) -o $@ -)
+	@chgrp shadow $(VAR_DB)/shadow.db
+	@chmod 640 $(VAR_DB)/shadow.db
 	@echo "done."
 
 $(VAR_DB)/netgroup.db: /etc/netgroup
-- 
Joel Klecker (aka Espy)                     <URL:http://web.espy.org/>
<URL:mailto:jk@espy.org>                  <URL:mailto:espy@debian.org>
Debian GNU/Linux PowerPC -- <URL:http://www.debian.org/ports/powerpc/>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]