summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glib-2.0/glib-2.0/allow-run-media-sdX-drive-mount-if-username-root.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/glib-2.0/glib-2.0/allow-run-media-sdX-drive-mount-if-username-root.patch')
-rw-r--r--meta/recipes-core/glib-2.0/glib-2.0/allow-run-media-sdX-drive-mount-if-username-root.patch16
1 files changed, 7 insertions, 9 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0/allow-run-media-sdX-drive-mount-if-username-root.patch b/meta/recipes-core/glib-2.0/glib-2.0/allow-run-media-sdX-drive-mount-if-username-root.patch
index 3d0c008bbe..3040479422 100644
--- a/meta/recipes-core/glib-2.0/glib-2.0/allow-run-media-sdX-drive-mount-if-username-root.patch
+++ b/meta/recipes-core/glib-2.0/glib-2.0/allow-run-media-sdX-drive-mount-if-username-root.patch
@@ -1,4 +1,4 @@
1From c53e94a520b573aa0dcf12903e9563fe8badc34c Mon Sep 17 00:00:00 2001 1From 66e5fd5e870a2de04ec0f0c5dbfa23db496bad43 Mon Sep 17 00:00:00 2001
2From: Marius Avram <marius.avram@intel.com> 2From: Marius Avram <marius.avram@intel.com>
3Date: Wed, 27 Aug 2014 12:10:41 +0300 3Date: Wed, 27 Aug 2014 12:10:41 +0300
4Subject: [PATCH] Allow /run/media/sdX drive mount if username root 4Subject: [PATCH] Allow /run/media/sdX drive mount if username root
@@ -14,17 +14,18 @@ graphical applications such as the File Manager (pcmanfm).
14Upstream-Status: Inappropriate 14Upstream-Status: Inappropriate
15 15
16Signed-off-by: Marius Avram <marius.avram@intel.com> 16Signed-off-by: Marius Avram <marius.avram@intel.com>
17
17--- 18---
18 gio/gunixmounts.c | 5 +++++ 19 gio/gunixmounts.c | 5 +++++
19 1 file changed, 5 insertions(+) 20 1 file changed, 5 insertions(+)
20 21
21diff --git a/gio/gunixmounts.c b/gio/gunixmounts.c 22diff --git a/gio/gunixmounts.c b/gio/gunixmounts.c
22index 4999354..f6c1472 100644 23index 355329c..6467fc5 100644
23--- a/gio/gunixmounts.c 24--- a/gio/gunixmounts.c
24+++ b/gio/gunixmounts.c 25+++ b/gio/gunixmounts.c
25@@ -2136,6 +2136,11 @@ g_unix_mount_guess_should_display (GUnixMountEntry *mount_entry) 26@@ -2745,6 +2745,11 @@ g_unix_mount_guess_should_display (GUnixMountEntry *mount_entry)
26 mount_path[sizeof ("/run/media/") - 1 + user_name_len] == '/') 27 is_in_runtime_dir = TRUE;
27 is_in_runtime_dir = TRUE; 28 }
28 29
29+ /* Allow no username in path in /run/media if current user is root */ 30+ /* Allow no username in path in /run/media if current user is root */
30+ if (strcmp(user_name, "root") == 0 && 31+ if (strcmp(user_name, "root") == 0 &&
@@ -34,6 +35,3 @@ index 4999354..f6c1472 100644
34 if (is_in_runtime_dir || g_str_has_prefix (mount_path, "/media/")) 35 if (is_in_runtime_dir || g_str_has_prefix (mount_path, "/media/"))
35 { 36 {
36 char *path; 37 char *path;
37--
381.7.9.5
39