Simon Mages wrote: > I just noticed a problem with gzip in OpenBSD 5.9 introduced with pledge: > if root compresses a file, the owner and group are not copied onto the created > archive file: > > user@obsd59:tmp >ls -l server.log > > -rw-r--r-- 1 user wheel 345 Jun 3 09:16 server.log > > user@obsd59:tmp >sudo gzip server.log > > user@obsd59:tmp >ls -l server.log.gz > > -rw-r--r-- 1 root wheel 234 Jun 3 09:16 server.log.gz > > This change in behavior makes especially problems in newsyslog, as newsyslog > sets owner and group of the rotated file prior to calling gzip. > As a result, every .0 file which is compressed will belong to root:wheel > instead > of the correct user and group.
ack. we're looking at it. pledge failing chown is intentional, but the consequence in gzip was not.
