[glib] gunixmounts: correctly flag hasmntopt usage



commit d474309c3f439fbe8c4af8cd9acac70235cf67a3
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Fri Apr 5 15:18:28 2013 +0100

    gunixmounts: correctly flag hasmntopt usage
    
    https://bugzilla.gnome.org/show_bug.cgi?id=697365

 gio/gunixmounts.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gio/gunixmounts.c b/gio/gunixmounts.c
index 96ebaea..06d042e 100644
--- a/gio/gunixmounts.c
+++ b/gio/gunixmounts.c
@@ -774,9 +774,11 @@ _g_get_unix_mount_points (void)
           (strcmp (mntent->mnt_dir, "none") == 0))
        continue;
 
+#ifdef HAVE_HASMNTOPT
       /* We ignore bind fstab entries, as we ignore bind mounts anyway */
       if (hasmntopt (mntent, "bind"))
         continue;
+#endif
 
       mount_entry = g_new0 (GUnixMountPoint, 1);
       mount_entry->mount_path = g_strdup (mntent->mnt_dir);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]