fix mount point deletion

SVN revision: 71999
This commit is contained in:
Mike Blumenkrantz 2012-06-12 09:18:05 +00:00
parent e147d690fa
commit 40d622e574
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ _e_fm_main_eeze_cb_vol_unmounted(void *user_data __UNUSED__,
v->mounted = EINA_FALSE;
INF("UNMOUNT: %s from %s", v->udi, v->mount_point);
if (!memcmp(v->mount_point, "/media/", 7))
if (!strncmp(v->mount_point, e_user_dir_get(), strlen(e_user_dir_get())))
unlink(v->mount_point);
size = strlen(v->udi) + 1 + strlen(v->mount_point) + 1;
buf = alloca(size);