mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-28 02:20:04 +01:00
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
This commit is contained in:
parent
ab3a0e6176
commit
f480caf760
@ -884,7 +884,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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user