Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Oct 2023 01:33:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        doc@FreeBSD.org
Subject:   [Bug 274189] [PATCH] stat(1) EXAMPLES use of st_mtimespec is incorrect since v1.10
Message-ID:  <bug-274189-9@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274189

            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=3D245346&action=
=3Dedit
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 o=
ther
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 speci=
fic
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.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-274189-9>