[glib/wip/msanchez/libmount: 3/8] Use libmount to find the path of the fstab file



commit 32e14452b23752cb2ad49dfaf3d74b7e5f6a8fc5
Author: Mario Sanchez Prada <mario endlessm com>
Date:   Fri Jun 10 10:44:06 2016 +0100

    Use libmount to find the path of the fstab file
    
    https://bugzilla.gnome.org/show_bug.cgi?id=522053

 gio/gunixmounts.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gio/gunixmounts.c b/gio/gunixmounts.c
index 33cf675..4a07bec 100644
--- a/gio/gunixmounts.c
+++ b/gio/gunixmounts.c
@@ -151,8 +151,8 @@ static guint64 mount_poller_time = 0;
 #ifdef HAVE_MNTENT_H
 #include <mntent.h>
 #ifdef HAVE_LIBMOUNT
-//TODO
-#endif // HAVE_LIBMOUNT
+#include <libmount/libmount.h>
+#endif
 #elif defined (HAVE_SYS_MNTTAB_H)
 #include <sys/mnttab.h>
 #endif
@@ -745,7 +745,7 @@ static char *
 get_fstab_file (void)
 {
 #ifdef HAVE_LIBMOUNT
-// TODO
+  return (char *) mnt_get_fstab_path ();
 #else
 #if defined(HAVE_SYS_MNTCTL_H) && defined(HAVE_SYS_VMOUNT_H) && defined(HAVE_SYS_VFS_H)
   /* AIX */


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