summaryrefslogtreecommitdiffstats
path: root/mount/fsprobe.c
diff options
context:
space:
mode:
Diffstat (limited to 'mount/fsprobe.c')
-rw-r--r--mount/fsprobe.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mount/fsprobe.c b/mount/fsprobe.c
index 96548647c..07ffbd9ab 100644
--- a/mount/fsprobe.c
+++ b/mount/fsprobe.c
@@ -170,6 +170,9 @@ fsprobe_get_devname_for_mounting(const char *spec)
if (!spec)
return NULL;
+ if (is_pseudo_fs(spec))
+ return xstrdup(spec);
+
if (parse_spec(spec, &name, &value) != 0)
return NULL; /* parse error */
@@ -203,6 +206,8 @@ fsprobe_get_devname(const char *spec)
if (!spec)
return NULL;
+ if (is_pseudo_fs(spec))
+ return xstrdup(spec);
if (parse_spec(spec, &name, &value) != 0)
return NULL; /* parse error */