forked from pool/util-linux
This commit is contained in:
parent
f4d5ea15e2
commit
08e0b41ef1
@ -1,24 +0,0 @@
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user