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]

Re: [PATCH] Fix for nss/db-Makefile


On Fri, Dec 18, 1998 at 07:59:02PM -0800, Joel Klecker wrote:
> At 17:53 -0800 1998-12-18, Ulrich Drepper wrote:
> >Well, something should happen here but the chgrp line cannot be used.
> >The group shadow is not available everywhere.
> 
> Hmm... yes, how unportable of me.
> 
> >I don't have a solution but the above won't work.
> 
> Perhaps this (I also noticed I inverted the umask):
> 
> 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/19 03:52:10
> @@ -111,7 +111,10 @@
>  		 /^[ \t]*#/ { next } \
>  		 { printf "0%u ", cnt++; print } \
>  		 /^[^#]/ { printf ".%s ", $$1; print }' $^ | \
> -	$(MAKEDB) -o $@ -
> +	(umask 777 && $(MAKEDB) -o $@ -)
> +	@echo ""
> +	@echo "Warning: The shadow password database: $(VAR_DB)/shadow.db"
> +	@echo "is created with a umask of 777 by default."
>  	@echo "done."

Wouldn't using 077 make more sense?

Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|     CMU, CS class of 2002      |
|   Debian GNU/Linux Developer    __   Part-Time Systems Programmer  |
|         dan@debian.org         |  |        drow@cs.cmu.edu         |
\--------------------------------/  \--------------------------------/


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