remove some e_sys code which prevented umounting user-mounted devices when devices were not mounted as /media/$dev

SVN revision: 77252
This commit is contained in:
Mike Blumenkrantz 2012-10-01 08:35:03 +00:00
parent 0742fcb26f
commit 121fe0f8c7
1 changed files with 4 additions and 0 deletions

View File

@ -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"))
{