aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/_p9dir.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-02-21 14:25:12 +0000
committerrsc <devnull@localhost>2005-02-21 14:25:12 +0000
commit98660df2502a6b2c92c651e6bc3f4a8be6143bb5 (patch)
tree247aca65fc3f45bb1a799686943ff69ccffd31d2 /src/lib9/_p9dir.c
parent5db61d6221fc96c9734f96846193bfc66eee2d8f (diff)
downloadplan9port-98660df2502a6b2c92c651e6bc3f4a8be6143bb5.tar.gz
plan9port-98660df2502a6b2c92c651e6bc3f4a8be6143bb5.tar.bz2
plan9port-98660df2502a6b2c92c651e6bc3f4a8be6143bb5.zip
better symlink
Diffstat (limited to 'src/lib9/_p9dir.c')
-rw-r--r--src/lib9/_p9dir.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib9/_p9dir.c b/src/lib9/_p9dir.c
index 8a748b9d..ce2dcecd 100644
--- a/src/lib9/_p9dir.c
+++ b/src/lib9/_p9dir.c
@@ -180,8 +180,7 @@ _p9dir(struct stat *lst, struct stat *st, char *name, Dir *d, char **str, char *
d->mode |= DMDIR;
d->qid.type = QTDIR;
}
-
- if(S_ISLNK(st->st_mode))
+ if(S_ISLNK(lst->st_mode)) /* yes, lst not st */
d->mode |= DMSYMLINK;
if(S_ISFIFO(st->st_mode))
d->mode |= DMNAMEDPIPE;