bug#18216: Issue with chmod and chown in gzip.c?

2014-08-07 Thread Frédéric Castelain
Hi, Isn't there an issue with the order of the chown and chmod calls in gzip.c? The source code is now : #ifndef NO_CHOWN /* Copy ownership */ # if HAVE_FCHOWN ignore_value (fchown (ofd, ifstat->st_uid, ifstat->st_gid)); # elif HAVE_CHOWN ignore_value (chown (ofname, ifstat->st_uid, if

bug#18216: Issue with chmod and chown in gzip.c?

2014-08-07 Thread Paul Eggert
gzip's old way had a security hole. I don't observe any problem with gzip 1.6 on Fedora 20 (see below); maybe there was a bug in gzip 1.3.12 that's been fixed, or maybe your OS has special restrictions, or something. You might try upgrading to 1.6, or if that doesn't work try running 'strace