Commit Diff


commit - 6c17f630901eec2a4b54b70748d7fbc9b47eecd8
commit + 3a62e5630748d788166a50ed34b7f0dc6d43a5ee
blob - 0fb3410e944f5aaf20a45f03f8a4e464202e2968
blob + 58c63573e3def3414e36db55c8a0266200d63628
--- src/lib9/_p9dir.c
+++ src/lib9/_p9dir.c
@@ -230,7 +230,7 @@ _p9dir(struct stat *lst, struct stat *st, char *name, 
 			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);