From 121fe0f8c7578e4f12f44de15afc235025587af7 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 1 Oct 2012 08:35:03 +0000 Subject: [PATCH] remove some e_sys code which prevented umounting user-mounted devices when devices were not mounted as /media/$dev SVN revision: 77252 --- src/bin/e_sys_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bin/e_sys_main.c b/src/bin/e_sys_main.c index ea2779fe8..b27ebf7af 100644 --- a/src/bin/e_sys_main.c +++ b/src/bin/e_sys_main.c @@ -347,9 +347,13 @@ mount_args_check(int argc, char **argv, const char *action) if (!node) return EINA_FALSE; if (!node[1]) return EINA_FALSE; if (node - argv[2] != 4) return EINA_FALSE; + /* this is good, but it prevents umounting user-mounted removable media; + * need to figure out a better way... + * snprintf(buf, sizeof(buf), "/media%s", node); if (stat(buf, &st)) return EINA_FALSE; if (!S_ISDIR(st.st_mode)) return EINA_FALSE; + */ } else if (!strcmp(action, "eject")) {