From 8ec69c388244c9d9b25693d708883bda7086e3fa Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 6 Mar 2008 15:43:41 +0100 Subject: [PATCH] mount: don't canonicalize LABEL= or UUID= spec Signed-off-by: Karel Zak --- mount/fstab.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mount/fstab.c b/mount/fstab.c index ada8d322..277f4f1d 100644 --- a/mount/fstab.c +++ b/mount/fstab.c @@ -433,7 +433,13 @@ getfs_by_devname (const char *devname) { /* noncanonical devname in fstab */ for (mc = mc0->nxt; mc && mc != mc0; mc = mc->nxt) { - char *fs = canonicalize(mc->m.mnt_fsname); + char *fs; + + if (strncmp(mc->m.mnt_fsname, "LABEL=", 6) == 0 || + strncmp(mc->m.mnt_fsname, "UUID=", 5) == 0) + continue; + + fs = canonicalize(mc->m.mnt_fsname); if (streq(fs, devname)) { free(fs); return mc; -- 2.39.5