- while (--argc) {
- argv++;
- if (argv[0][0]=='-') {
- if (argv[0][1]=='n')
- nflg++;
- else if (argv[0][1]=='f')
- fflg++;
- else if (argv[0][1]=='c')
- cflg++;
- else if (argv[0][1]=='v')
- vflg++;
- else if (argv[0][1]=='h')
- hflg++;
- } else {
- if (check(*argv) == 0)
- report();
- }
+ while (fs = getfsent()) {
+ if (strcmp(fs->fs_type, FSTAB_RO) &&
+ strcmp(fs->fs_type, FSTAB_RW) &&
+ strcmp(fs->fs_type, FSTAB_RQ))
+ continue;
+ cp = rindex(fs->fs_spec, '/');
+ if (cp == 0)
+ continue;
+ sprintf(dev, "/dev/r%s", cp + 1);
+ if (check(dev) == 0)
+ report();