#include <vlc_stream.h>
#include <vlc_interface.h>
-#include <unistd.h> /* unlink() */
/*****************************************************************************
* Misc defines
}
else
{
- unlink( psz_destfile ); /* FIXME: use (and write) utf8_unlink() ? */
+ utf8_unlink( psz_destfile );
goto end;
}
if( !p_hash )
{
msg_Err( p_udt, "Unable to hash %s", psz_destfile );
- unlink( psz_destfile );
+ utf8_unlink( psz_destfile );
goto end;
}
p_hash[1] != sign.hash_verification[1] )
{
msg_Err( p_udt, "Bad SHA1 hash for %s", psz_destfile );
- unlink( psz_destfile );
+ utf8_unlink( psz_destfile );
goto end;
}
{
msg_Err( p_udt, "BAD SIGNATURE for %s", psz_destfile );
free( p_hash );
- unlink( psz_destfile );
+ utf8_unlink( psz_destfile );
goto end;
}