mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
lib9: skip buggy S_ISCHR check in disksize on OpenBSD
The portable code is already checking S_ISCHR anyway.
This commit is contained in:
parent
e243a4c391
commit
e9cbe46fe6
1 changed files with 0 additions and 2 deletions
|
@ -51,8 +51,6 @@ disksize(int fd, struct stat *st)
|
|||
struct disklabel lab;
|
||||
int n;
|
||||
|
||||
if(!S_ISCHR(st->st_mode))
|
||||
return 0;
|
||||
if(ioctl(fd, DIOCGDINFO, &lab) < 0)
|
||||
return 0;
|
||||
n = minor(st->st_rdev)&7;
|
||||
|
|
Loading…
Reference in a new issue