Signed-off-by: Karel Zak <kzak@redhat.com>
mc0 = mtab_head();
if (!mcprev)
mcprev = mc0;
- for (mc = mcprev->prev; mc && mc != mc0; mc = mc->prev)
+ for (mc = mcprev->prev; mc && mc != mc0; mc = mc->prev) {
if (streq(mc->m.mnt_fsname, name))
return mc;
+ }
return NULL;
}
printf("mount: eUID: %u\n", geteuid());
}
+#ifdef HAVE_LIBMOUNT_MOUNT
+ mnt_init_debug(0);
+#endif
+
argc -= optind;
argv += optind;
atexit(unlock_mtab);
+#ifdef HAVE_LIBMOUNT_MOUNT
+ mnt_init_debug(0);
+#endif
if (all) {
/* nodev stuff: sysfs, usbfs, oprofilefs, ... */
if (types == NULL)