gzip: fix permissions issue on Solaris-like systems
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 24 Oct 2013 07:19:56 +0000 (00:19 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 24 Oct 2013 07:20:51 +0000 (00:20 -0700)
commitf4ea7ba0bd70b1fc9986aca3d76bf46b4fb8ec52
tree07ae592277a7e640ae0e143ab221e64cfaeb0948
parent8b112f22fa2a6e6f60370b954ba4003f730fb13f
gzip: fix permissions issue on Solaris-like systems

I.e., on systems that let users give files away.
* gzip.c (do_chown): New function.
(copy_stat): Use it, to change the group, then the permissions,
then the owner.  Idea suggested by Vladimir Marek in
<http://bugs.gnu.org/15672#11>
gzip.c