Skip to content

tail: Do not trust st_size if it equals zero#20

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

tail: Do not trust st_size if it equals zero#20
ricardobranco777 wants to merge 1 commit into
NetBSD:trunkfrom
ricardobranco777:tail

Conversation

@ricardobranco777

@ricardobranco777 ricardobranco777 commented Jan 14, 2024

Copy link
Copy Markdown

tail(1) is not able to operate on files residing in pseudo-filesystems or others that advertise a zero size.

To reproduce: tail -1 /proc/mounts dumps the whole file.

Also fixed on FreeBSD: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276107

rokuyama pushed a commit to IIJ-NetBSD/netbsd-src that referenced this pull request Jan 14, 2024
netbsd-srcmastr pushed a commit that referenced this pull request Aug 31, 2025
	sys/arch/m68k/m68k/mmu_subr.s: revision 1.4

m68k: Fix invalid instruction word.

PMOVE <ea>,TTn instruction doesn't support (An)+ addressing mode on 68030.
netbsd-srcmastr pushed a commit that referenced this pull request Aug 31, 2025
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