mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
gunixmounts: correctly flag hasmntopt usage
https://bugzilla.gnome.org/show_bug.cgi?id=697365
This commit is contained in:
@@ -774,9 +774,11 @@ _g_get_unix_mount_points (void)
|
|||||||
(strcmp (mntent->mnt_dir, "none") == 0))
|
(strcmp (mntent->mnt_dir, "none") == 0))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
#ifdef HAVE_HASMNTOPT
|
||||||
/* We ignore bind fstab entries, as we ignore bind mounts anyway */
|
/* We ignore bind fstab entries, as we ignore bind mounts anyway */
|
||||||
if (hasmntopt (mntent, "bind"))
|
if (hasmntopt (mntent, "bind"))
|
||||||
continue;
|
continue;
|
||||||
|
#endif
|
||||||
|
|
||||||
mount_entry = g_new0 (GUnixMountPoint, 1);
|
mount_entry = g_new0 (GUnixMountPoint, 1);
|
||||||
mount_entry->mount_path = g_strdup (mntent->mnt_dir);
|
mount_entry->mount_path = g_strdup (mntent->mnt_dir);
|
||||||
|
Reference in New Issue
Block a user