diff options
-rw-r--r-- | src/lib9/_p9dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib9/_p9dir.c b/src/lib9/_p9dir.c index 0fb3410e..58c63573 100644 --- a/src/lib9/_p9dir.c +++ b/src/lib9/_p9dir.c @@ -230,7 +230,7 @@ _p9dir(struct stat *lst, struct stat *st, char *name, Dir *d, char **str, char * d->qid.path = ('c'<<16)|st->st_rdev; } /* fetch real size for disks */ - if(S_ISBLK(lst->st_mode) || S_ISCHR(lst->st_mode)){ + if(S_ISBLK(lst->st_mode)){ if((fd = open(name, O_RDONLY)) >= 0){ d->length = disksize(fd, st); close(fd); |