return 0;
}
}
+ if (optind != argc) {
+ umount_usage();
+ return 0;
+ }
if (spec == NULL || (*spec != '/' && strchr(spec,':') == NULL)) {
printf(_("umount: %s: not found\n"), spec);
if (!mc && verbose)
printf(_("Could not find %s in mtab\n"), spec);
+ if (mc && strcmp(mc->m.mnt_type, "nfs") != 0 &&
+ strcmp(mc->m.mnt_type, "nfs4") != 0) {
+ fprintf(stderr, "umount.nfs: %s on %s it not an nfs filesystem\n",
+ mc->m.mnt_fsname, mc->m.mnt_dir);
+ exit(1);
+ }
+
if (getuid() != 0) {
/* only permitted if "user=" or "users" is in mount options */
if (!mc) {