mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01:00
[Win32] call rmdir() only if remove() fails with errno set to ENOENT, to
2006-03-30 Tor Lillqvist <tml@novell.com> * glib/gstdio.c (g_remove): [Win32] call rmdir() only if remove() fails with errno set to ENOENT, to leave errno set to EACCESS if that is the problem. (#334799, Yevgen Muntyan)
This commit is contained in:
parent
22eb9cddb9
commit
0e5127e1c8
@ -1,3 +1,9 @@
|
||||
2006-03-30 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* glib/gstdio.c (g_remove): [Win32] call rmdir() only if remove()
|
||||
fails with errno set to ENOENT, to leave errno set to EACCESS if
|
||||
that is the problem. (#334799, Yevgen Muntyan)
|
||||
|
||||
2006-03-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/goption.c (g_option_context_new): Improve the description
|
||||
|
@ -1,3 +1,9 @@
|
||||
2006-03-30 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* glib/gstdio.c (g_remove): [Win32] call rmdir() only if remove()
|
||||
fails with errno set to ENOENT, to leave errno set to EACCESS if
|
||||
that is the problem. (#334799, Yevgen Muntyan)
|
||||
|
||||
2006-03-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/goption.c (g_option_context_new): Improve the description
|
||||
|
@ -780,7 +780,7 @@ g_remove (const gchar *filename)
|
||||
}
|
||||
|
||||
retval = _wremove (wfilename);
|
||||
if (retval == -1)
|
||||
if (retval == -1 && errno == ENOENT)
|
||||
retval = _wrmdir (wfilename);
|
||||
save_errno = errno;
|
||||
|
||||
@ -802,7 +802,7 @@ g_remove (const gchar *filename)
|
||||
}
|
||||
|
||||
retval = remove (cp_filename);
|
||||
if (retval == -1)
|
||||
if (retval == -1 && errno == ENOENT)
|
||||
retval = rmdir (cp_filename);
|
||||
save_errno = errno;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user