mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
lib9: use symlink size, not target size, in dirstat
This commit is contained in:
parent
d07db89b00
commit
4712e22300
1 changed files with 3 additions and 1 deletions
|
@ -203,8 +203,10 @@ _p9dir(struct stat *lst, struct stat *st, char *name, Dir *d, char **str, char *
|
|||
d->mode |= DMDIR;
|
||||
d->qid.type = QTDIR;
|
||||
}
|
||||
if(S_ISLNK(lst->st_mode)) /* yes, lst not st */
|
||||
if(S_ISLNK(lst->st_mode)){ /* yes, lst not st */
|
||||
d->mode |= DMSYMLINK;
|
||||
d->length = lst->st_size;
|
||||
}
|
||||
if(S_ISFIFO(st->st_mode))
|
||||
d->mode |= DMNAMEDPIPE;
|
||||
if(S_ISSOCK(st->st_mode))
|
||||
|
|
Loading…
Reference in a new issue