forked from enlightenment/enlightenment
print error when failing to unlink efm/eeze mount point after unmount
CID 1382955
This commit is contained in:
parent
6ad75a5e85
commit
f34c780db3
|
@ -244,7 +244,8 @@ _e_fm_main_eeze_cb_vol_unmounted(void *user_data EINA_UNUSED,
|
||||||
v->mounted = EINA_FALSE;
|
v->mounted = EINA_FALSE;
|
||||||
INF("UNMOUNT: %s from %s", v->udi, v->mount_point);
|
INF("UNMOUNT: %s from %s", v->udi, v->mount_point);
|
||||||
if (!strncmp(v->mount_point, e_user_dir_get(), strlen(e_user_dir_get())))
|
if (!strncmp(v->mount_point, e_user_dir_get(), strlen(e_user_dir_get())))
|
||||||
unlink(v->mount_point);
|
if (unlink(v->mount_point))
|
||||||
|
printf("Error unlinking mount point!\n");
|
||||||
size = strlen(v->udi) + 1 + strlen(v->mount_point) + 1;
|
size = strlen(v->udi) + 1 + strlen(v->mount_point) + 1;
|
||||||
buf = alloca(size);
|
buf = alloca(size);
|
||||||
strcpy(buf, v->udi);
|
strcpy(buf, v->udi);
|
||||||
|
|
Loading…
Reference in New Issue