[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
chown before chmod in gzip.c copy_stat prevents chmod
From: |
O'Connor, Russell |
Subject: |
chown before chmod in gzip.c copy_stat prevents chmod |
Date: |
Tue, 12 Jun 2007 10:50:31 -0400 |
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. With chown before chmod, if you don't own the file, you
won't be able to change the permissions, and they will be left at 0600,
and gzip reports "Operation not permitted". Is this intentional?
--
Russ
- chown before chmod in gzip.c copy_stat prevents chmod,
O'Connor, Russell <=