From f6fa90fb0dab7a45ec6557ade1bf8b3db755dafd Mon Sep 17 00:00:00 2001 From: Ondrej Holy Date: Mon, 2 Oct 2017 11:24:34 +0200 Subject: [PATCH] gunixmounts: Fix mount points generation Commit 53ed180 improved mtab processing, however, also introduced bug in code obtaining mount points. mtab was used by mistake also for g_unix_mount_points_get implementation, which is obviously wrong and fstab has to be used instead... https://bugzilla.gnome.org/show_bug.cgi?id=781867 --- gio/gunixmounts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gunixmounts.c b/gio/gunixmounts.c index 781aeee55..c4f4d3dcb 100644 --- a/gio/gunixmounts.c +++ b/gio/gunixmounts.c @@ -885,7 +885,7 @@ _g_get_unix_mount_points (void) GList *return_list = NULL; table = mnt_new_table (); - if (mnt_table_parse_mtab (table, NULL) < 0) + if (mnt_table_parse_fstab (table, NULL) < 0) goto out; iter = mnt_new_iter (MNT_ITER_FORWARD);