[Bug 274189] [PATCH] stat(1) EXAMPLES use of st_mtimespec is incorrect since v1.10
Date: Sun, 01 Oct 2023 01:33:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274189
Bug ID: 274189
Summary: [PATCH] stat(1) EXAMPLES use of st_mtimespec is
incorrect since v1.10
Product: Documentation
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Manual Pages
Assignee: bugs@FreeBSD.org
Reporter: mirror176@hotmail.com
CC: doc@FreeBSD.org
Created attachment 245346
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=245346&action=edit
Replace timespec with time in usr.bin/stat/stat.1
stat(1) EXAMPLES makes use of st_mtimespec which is not created by -s as the
example implies so it fails. st_mtime is included in the output when running
`stat -s filename` under both csh and sh but st_mtimespec is not.
The following would be a fix to the manpage to be functional for examples. I
also changed the last occurrence of timespec as I don't think it would make
sense if that is not the actual field but it could be left if it is desired.
After editing I noticed code seems labeled as coming from NetBSD; it seems they
have the change in the examples area (last edits of my patch) but not the other
format area (first edit). They have the tool and manpage on v1.46 instead of
our v1.28 and I did not look things over further than comparing these specific
edits.
It appears that the NetBSD manpage was fixed in v1.15 in 2005 to match the
v1.10 program alteration in 2003 saying they changed it because that's what the
fields really are.
--
You are receiving this mail because:
You are on the CC list for the bug.