Commit f6fa90fb authored by Ondrej Holy's avatar Ondrej Holy

gunixmounts: Fix mount points generation

Commit 53ed1804 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...
parent d4a21e00
...@@ -885,7 +885,7 @@ _g_get_unix_mount_points (void) ...@@ -885,7 +885,7 @@ _g_get_unix_mount_points (void)
GList *return_list = NULL; GList *return_list = NULL;
table = mnt_new_table (); table = mnt_new_table ();
if (mnt_table_parse_mtab (table, NULL) < 0) if (mnt_table_parse_fstab (table, NULL) < 0)
goto out; goto out;
iter = mnt_new_iter (MNT_ITER_FORWARD); iter = mnt_new_iter (MNT_ITER_FORWARD);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment