Date: Tue, 20 Oct 1998 18:25:18 -0700 From: John Polstra <jdp@polstra.com> To: Christopher Masto <chris@netmonger.net> Cc: current@FreeBSD.ORG Subject: Re: cvsup and file permissions Message-ID: <199810210125.SAA07770@austin.polstra.com> In-Reply-To: Your message of "Tue, 20 Oct 1998 20:46:19 EDT." <19981020204619.F16673@netmonger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> > Meanwhile, try changing the umask as I suggested in my other mail. > > I'm pretty sure that will work. > > The umask already _is_ 002. Perhaps I'm misunderstanding something, We are miscommunicating somehow, because it _does_ work. > but doesn't the umask simply mask the bits that are assigned when a > file is created? No. It also affects which bits CVSup pays attention to when it is determining whether the two files are the "same". I.e., CVSup looks at the umask and does something with it. Again, it _does_ work. Watch this. First I will get some files under a umask of 22: vashon$ umask 22 vashon$ cvsup -1gL2 -P m -i src/bin/cat supfile Parsing supfile "supfile" Looking up address of cvsup.freebsd.org Connecting to cvsup.freebsd.org Connected to cvsup.freebsd.org Server software version: REL_15_4_2 Negotiating file attribute support Exchanging collection information Establishing multiplexed-mode data connection Running Updating collection src-bin/cvs Mkdir src Mkdir src/bin Mkdir src/bin/cat Create src/bin/cat/Makefile,v Create src/bin/cat/cat.1,v Create src/bin/cat/cat.c,v SetAttrs src/bin/cat SetAttrs src/bin SetAttrs src Shutting down connection to server Finished successfully And they come out with modes like you're getting: vashon$ ls -lRF src total 1 drwxr-xr-x 3 jdp jdp 512 Oct 20 18:14 bin/ src/bin: total 1 drwxr-xr-x 2 jdp jdp 512 Oct 20 18:14 cat/ src/bin/cat: total 24 -r--r--r-- 1 jdp jdp 1651 Oct 15 23:06 Makefile,v -r--r--r-- 1 jdp jdp 9380 Oct 15 23:06 cat.1,v -r--r--r-- 1 jdp jdp 12201 Oct 15 23:06 cat.c,v Now I change my umask to 2 and do another update: vashon$ umask 2 vashon$ cvsup -1gL2 -P m -i src/bin/cat supfile Parsing supfile "supfile" Looking up address of cvsup.freebsd.org Connecting to cvsup.freebsd.org Connected to cvsup.freebsd.org Server software version: REL_15_4_2 Negotiating file attribute support Exchanging collection information Establishing multiplexed-mode data connection Running Updating collection src-bin/cvs SetAttrs src/bin/cat SetAttrs src/bin SetAttrs src Shutting down connection to server Finished successfully And now the files have the modes that you desire: vashon$ ls -lRF src total 1 drwxrwxr-x 3 jdp jdp 512 Oct 20 18:14 bin/ src/bin: total 1 drwxrwxr-x 2 jdp jdp 512 Oct 20 18:14 cat/ src/bin/cat: total 24 -r--r--r-- 1 jdp jdp 1651 Oct 15 23:06 Makefile,v -r--r--r-- 1 jdp jdp 9380 Oct 15 23:06 cat.1,v -r--r--r-- 1 jdp jdp 12201 Oct 15 23:06 cat.c,v Just for good measure, I do yet another update, still with a umask of 2: vashon$ cvsup -1gL2 -P m -i src/bin/cat supfile Parsing supfile "supfile" Looking up address of cvsup.freebsd.org Connecting to cvsup.freebsd.org Connected to cvsup.freebsd.org Server software version: REL_15_4_2 Negotiating file attribute support Exchanging collection information Establishing multiplexed-mode data connection Running Updating collection src-bin/cvs Shutting down connection to server Finished successfully Surprise surprise, no "SetAttrs". Please try it like that, and see if it works. If it doesn't, then send me your cvsupfile as well as the output from "cvsup -v". Don't worry, we'll get to the bottom of this. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Nobody ever went broke underestimating the taste of the American public." -- H. L. Mencken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810210125.SAA07770>