NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/57855: gzip(1) cannot preserve the file's times because it first sets the file's flags.



>Number:         57855
>Category:       bin
>Synopsis:       gzip(1) cannot preserve the file's times because it first sets the file's flags.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 14 18:05:00 +0000 2024
>Originator:     Ricardo Branco
>Release:        NetBSD 10.0_RC2
>Organization:
>Environment:
>Description:
gzip(1) cannot preserve the file's times because it first sets the file's flags.

>How-To-Repeat:
$ /usr/bin/touch /tmp/foo
$ /bin/chflags uchg /tmp/foo
$ /usr/bin/gzip -v /tmp/foo
gzip: couldn't utimes: /tmp/foo.gz: Operation not permitted
/tmp/foo:         -99.9% -- replaced with /tmp/foo.gz
>Fix:
https://github.com/NetBSD/src/pull/23



Home | Main Index | Thread Index | Old Index