summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-07-20 07:18:08 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-07-20 07:18:08 -0700
commit9c2fcf3aeae6cd112a1e5b5e8374a03cf5217c9b (patch)
treeccadbcbe54c724271f5dd61c58983d5fe9b08f5d /txr.1
parentd9afdbb32c0dd0b693e01b4204176d333805571b (diff)
downloadtxr-9c2fcf3aeae6cd112a1e5b5e8374a03cf5217c9b.tar.gz
txr-9c2fcf3aeae6cd112a1e5b5e8374a03cf5217c9b.tar.bz2
txr-9c2fcf3aeae6cd112a1e5b5e8374a03cf5217c9b.zip
distat: bugfix: use lstat.
* sysif.c (dirstat): Call lstat_wrap, rather than stat_wrap. This function must report about the directory entry itself, not about what that entry points to if it happens to be a symlink. The d-type member of the dirent structure representing a symlink must be set to dt-lnk. * txr.1: Updated.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.115
1 files changed, 7 insertions, 8 deletions
diff --git a/txr.1 b/txr.1
index e1c82a75..a2cfd4e3 100644
--- a/txr.1
+++ b/txr.1
@@ -63148,7 +63148,7 @@ when the handle indicates that no more directory entries remain to be traversed.
The
.code dirstat
function invokes
-.code stat
+.code lstat
on the object represented by the
.code dirent
structure
@@ -63158,13 +63158,13 @@ sets the
slot of the
.meta dirent-struct
accordingly, and then returns the value that
-.code stat
+.code lstat
returned.
If the
.meta struct
argument is specified, it is passed to
-.codn stat .
+.codn lstat .
The
.meta dir-path
@@ -63194,17 +63194,16 @@ using
to form the effective path.
The
-.code stat
+.code lstat
function is invoked on the effective path, and if it succeeds,
then type information is obtained from the resulting
-.code stat
structure to set the value of the
.code type
slot of
.metn dirent-struct .
-The
-.code stat
-structure is then returned.
+The same structure that was returned by
+.code lstat
+is then returned.
.SS* Unix Sockets