[glib/glib-2-52] gunixmounts: Prevent unwanted automount requests
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-52] gunixmounts: Prevent unwanted automount requests
- Date: Tue, 9 May 2017 12:36:45 +0000 (UTC)
commit b8bd46bc862598db41013f4b56b0d74126e25c52
Author: Ondrej Holy <oholy redhat com>
Date: Fri May 5 12:42:39 2017 +0200
gunixmounts: Prevent unwanted automount requests
mnt_table_is_fs_mounted causes unwanted automount requests due to
canonicalization of source and target. It might be replaced by
mnt_table_find_source as per the documentation in order to prevent
the automounts, but it is redundant. All mtab entries should be already
mounted and thus mnt_table_is_fs_mounted result is always true (it
basically checks that the fs from mtab is in mtab). Let's remove
the check at all.
https://bugzilla.gnome.org/show_bug.cgi?id=781867
gio/gunixmounts.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gio/gunixmounts.c b/gio/gunixmounts.c
index 0c73a56..b4fa2a4 100644
--- a/gio/gunixmounts.c
+++ b/gio/gunixmounts.c
@@ -404,9 +404,6 @@ _g_get_unix_mounts (void)
unsigned long mount_flags = 0;
gboolean is_read_only = FALSE;
- if (!mnt_table_is_fs_mounted (table, fs))
- continue;
-
device_path = mnt_fs_get_source (fs);
if (g_strcmp0 (device_path, "/dev/root") == 0)
device_path = _resolve_dev_root ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]