Skip to content

gzip: set file flags after setting file times#23

Closed
ricardobranco777 wants to merge 1 commit into
NetBSD:trunkfrom
ricardobranco777:gzip_times
Closed

gzip: set file flags after setting file times#23
ricardobranco777 wants to merge 1 commit into
NetBSD:trunkfrom
ricardobranco777:gzip_times

Conversation

@ricardobranco777

Copy link
Copy Markdown

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

@ricardobranco777 ricardobranco777 deleted the gzip_times branch February 4, 2024 16:17
netbsd-srcmastr pushed a commit that referenced this pull request Sep 2, 2025
	distrib/miniroot/install.sh: revision 1.29

Place a ptyfs instance into the newly-written /etc/fstab, so that
e.g. sshd works out of the box after installation on sun3.
netbsd-srcmastr pushed a commit that referenced this pull request Sep 2, 2025
netbsd-srcmastr pushed a commit that referenced this pull request Nov 30, 2025
before:
NetBSD 11.99.4 (GENERIC) #22: Sun Nov 30 08:16:31 JST 2025
   text    data     bss     dec     hex filename
2996019  101388  101984 3199391  30d19f netbsd

after:
NetBSD 11.99.4 (GENERIC) #23: Sun Nov 30 08:18:18 JST 2025
   text    data     bss     dec     hex filename
2689719  101388  101984 2893091  2c2523 netbsd

Worth to pull up to netbsd-11.

XXX: should this be default for all kernels?
netbsd-srcmastr pushed a commit that referenced this pull request Dec 14, 2025
	sys/arch/news68k/conf/GENERIC: revision 1.142
	sys/arch/news68k/conf/INSTALL: revision 1.67
	sys/arch/news68k/conf/LIBERO: revision 1.71
	sys/arch/news68k/conf/NEWS1200: revision 1.71
	sys/arch/news68k/conf/GENERIC_TINY: revision 1.94

Consistently specify `-fno-unwind-tables` to shrink kernel binary size.

before:

NetBSD 11.99.4 (GENERIC) #22: Sun Nov 30 08:16:31 JST 2025
   text    data     bss     dec     hex filename
2996019  101388  101984 3199391  30d19f netbsd

after:

NetBSD 11.99.4 (GENERIC) #23: Sun Nov 30 08:18:18 JST 2025
   text    data     bss     dec     hex filename
2689719  101388  101984 2893091  2c2523 netbsd

XXX: should this be default for all kernels?
iMilnb pushed a commit to NetBSDfr/NetBSD-src that referenced this pull request Jan 9, 2026
	sys/arch/news68k/conf/GENERIC: revision 1.142
	sys/arch/news68k/conf/INSTALL: revision 1.67
	sys/arch/news68k/conf/LIBERO: revision 1.71
	sys/arch/news68k/conf/NEWS1200: revision 1.71
	sys/arch/news68k/conf/GENERIC_TINY: revision 1.94

Consistently specify `-fno-unwind-tables` to shrink kernel binary size.

before:

NetBSD 11.99.4 (GENERIC) NetBSD#22: Sun Nov 30 08:16:31 JST 2025
   text    data     bss     dec     hex filename
2996019  101388  101984 3199391  30d19f netbsd

after:

NetBSD 11.99.4 (GENERIC) NetBSD#23: Sun Nov 30 08:18:18 JST 2025
   text    data     bss     dec     hex filename
2689719  101388  101984 2893091  2c2523 netbsd

XXX: should this be default for all kernels?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant