diff --git a/usr.sbin/quot/quot.c b/usr.sbin/quot/quot.c index 3bc15b080c8a..3a8275aeabb6 100644 --- a/usr.sbin/quot/quot.c +++ b/usr.sbin/quot/quot.c @@ -30,7 +30,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: quot.c,v 1.5 1994/06/13 20:50:48 cgd Exp $"; +static char rcsid[] = "$Id: quot.c,v 1.6 1994/06/13 20:56:47 cgd Exp $"; #endif /* not lint */ #include @@ -94,7 +94,7 @@ static struct dinode *get_inode(fd,super,ino) exit(1); } last = (ino / INOCNT(super)) * INOCNT(super); - if (lseek(fd,itod(super,last) << super->fs_fshift,0) < 0 + if (lseek(fd,ino_to_fsba(super,last) << super->fs_fshift,0) < 0 || read(fd,ip,INOSZ(super)) != INOSZ(super)) { perror("read inodes"); exit(1);