Index: util-linux-ng-2.13.1/mount/fstab.c =================================================================== --- util-linux-ng-2.13.1.orig/mount/fstab.c +++ util-linux-ng-2.13.1/mount/fstab.c @@ -419,11 +419,17 @@ getfs_by_spec (const char *spec) { struct mntentchn * getfs_by_devname (const char *devname) { struct mntentchn *mc, *mc0; + char *name; mc0 = fstab_head(); - for (mc = mc0->nxt; mc && mc != mc0; mc = mc->nxt) - if (streq(mc->m.mnt_fsname, devname)) + for (mc = mc0->nxt; mc && mc != mc0; mc = mc->nxt) { + name = canonicalize(mc->m.mnt_fsname); + if (streq(name, devname)) { + free(name); return mc; + } + } + free(name); return NULL; }