Re: chown before chmod in gzip.c copy_stat prevents chmod

2007-06-16 Thread Bob Proulx
Paul Eggert wrote: > "O'Connor, Russell" <[EMAIL PROTECTED]> writes: > > The file gets gzipped in the HPUX NFS case, too, but since the chown > > works and the chmod fails, everyone but the owner loses access to it, > > which is not OK. > > I suggest using the HP-UX setprivgrp command (or modifyin

Re: chown before chmod in gzip.c copy_stat prevents chmod

2007-06-13 Thread Paul Eggert
"O'Connor, Russell" <[EMAIL PROTECTED]> writes: > The file gets gzipped in the HPUX NFS case, too, but since the chown > works and the chmod fails, everyone but the owner loses access to it, > which is not OK. I suggest using the HP-UX setprivgrp command (or modifying /etc/privgroup) so that ordi

Re: chown before chmod in gzip.c copy_stat prevents chmod

2007-06-12 Thread Paul Eggert
"O'Connor, Russell" <[EMAIL PROTECTED]> writes: > The CVS change log for revision 1.6 of gzip.c says "Invoke chmod before > chown, to close a race condition." But the change actually moves chown > before chmod. Sorry, the change log is wrong. I'll fix it. > With chown before chmod, if you don'