mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Ignore fstab entries that are bind mounts
We don't show the bind mounts anyway, so it only leads to problems when we show the fstab entries, like being unable to mount them. https://bugzilla.gnome.org/show_bug.cgi?id=625552
This commit is contained in:
parent
455afd3545
commit
b0d5ce1678
@ -774,6 +774,10 @@ _g_get_unix_mount_points (void)
|
||||
(strcmp (mntent->mnt_dir, "none") == 0))
|
||||
continue;
|
||||
|
||||
/* We ignore bind fstab entries, as we ignore bind mounts anyway */
|
||||
if (hasmntopt (mntent, "bind"))
|
||||
continue;
|
||||
|
||||
mount_entry = g_new0 (GUnixMountPoint, 1);
|
||||
mount_entry->mount_path = g_strdup (mntent->mnt_dir);
|
||||
if (strcmp (mntent->mnt_fsname, "/dev/root") == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user