mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
w32: Allow Unicode filenames for iobuf_cancel.
* common/iobuf.c (iobuf_cancel): Use gnupg_remove * common/mischelp.c (same_file_p): Allow for Unicode names. -- Note that the second patch is used to handle Unicode filenames which are symbolic links.
This commit is contained in:
parent
e3db6c74a6
commit
10db566489
3 changed files with 24 additions and 35 deletions
|
@ -1197,14 +1197,7 @@ iobuf_cancel (iobuf_t a)
|
|||
{
|
||||
/* Argg, MSDOS does not allow removing open files. So
|
||||
* we have to do it here */
|
||||
#ifdef HAVE_W32CE_SYSTEM
|
||||
wchar_t *wtmp = utf8_to_wchar (remove_name);
|
||||
if (wtmp)
|
||||
DeleteFile (wtmp);
|
||||
xfree (wtmp);
|
||||
#else
|
||||
remove (remove_name);
|
||||
#endif
|
||||
gnupg_remove (remove_name);
|
||||
xfree (remove_name);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue