There is no need to call unlink() there as mount_enum_drives() does it
too, soon after calling mount_dev_del(). Also mount_enum_drives() does
that for STATUS_EXPIRED - which is expected - as there is no unlink()
call when device expires.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
log_printf("device %s has disappeared ... unmounting %s\n", mount->dev, tmp);
system_printf("/bin/umount %s", tmp);
rmdir(tmp);
- snprintf(tmp, 64, "%s%s", uci_path, mount->name);
- unlink(tmp);
mount_dump_uci_state();
}
}