summaryrefslogtreecommitdiff
path: root/monitor/udisks2/gvfsudisks2utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor/udisks2/gvfsudisks2utils.c')
-rw-r--r--monitor/udisks2/gvfsudisks2utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/monitor/udisks2/gvfsudisks2utils.c b/monitor/udisks2/gvfsudisks2utils.c
index bb2cdaf6..df56962b 100644
--- a/monitor/udisks2/gvfsudisks2utils.c
+++ b/monitor/udisks2/gvfsudisks2utils.c
@@ -110,6 +110,12 @@ gvfs_udisks2_utils_lookup_fstab_options_value (const gchar *fstab_options,
const gchar *start;
guint n;
+ /* The code doesn't care about prefix, which may cause problems for
+ * options like "auto" and "noauto". However, this function is only used
+ * with our "x-gvfs-*" options, where mentioned problems are unlikely.
+ * Be careful, that some people rely on this bug and use "comment=x-gvfs-*"
+ * as workaround, see: https://gitlab.gnome.org/GNOME/gvfs/issues/348
+ */
start = strstr (fstab_options, key);
if (start != NULL)
{