NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/47333: stat -L undocumented behavior
The following reply was made to PR bin/47333; it has been noted by GNATS.
From: "Jeremy C. Reed" <reed%reedmedia.net@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: bin/47333: stat -L undocumented behavior
Date: Fri, 2 May 2025 19:16:14 +0000 (UTC)
This ticket is over a decade old. But the change is over two decades
so maybe we should just document it.
I don't see any Unix spec for this. But here is example from Linux
coreutils:
reed@ns1:~$ ln -s doesnotexist linktest
reed@ns1:~$ stat linktest
File: linktest -> doesnotexist
Size: 12 Blocks: 0 IO Block: 4096 symbolic link
Device: 8,1 Inode: 129555 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 1000/ reed) Gid: ( 1000/ reed)
Access: 2025-05-02 21:09:33.291973078 +0200
Modify: 2025-05-02 21:09:29.739973078 +0200
Change: 2025-05-02 21:09:29.739973078 +0200
Birth: 2025-05-02 21:09:29.739973078 +0200
reed@ns1:~$ stat -L linktest
stat: cannot statx 'linktest': No such file or directory
reed@ns1:~$ ls -l linktest
lrwxrwxrwx 1 reed reed 12 May 2 21:09 linktest -> doesnotexist
Home |
Main Index |
Thread Index |
Old Index