Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gzip: set file flags after setting file times #23

Closed
wants to merge 1 commit into from

Conversation

ricardobranco777
Copy link

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

To reproduce:

$ /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

Already fixed in FreeBSD: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=120208

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant