Commit f0e54fd3 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson
Browse files

Handle filesystems (like ntfs-3g) that return EEXIST instead of ENOTEMPTY

2008-02-26  Alexander Larsson  <alexl@redhat.com>

        * glocalfile.c:
        (g_local_file_delete):
	Handle filesystems (like ntfs-3g) that return EEXIST instead
	of ENOTEMPTY (#518816)


svn path=/trunk/; revision=6598
parent d01acfe8
2008-02-26 Alexander Larsson <alexl@redhat.com>
* glocalfile.c:
(g_local_file_delete):
Handle filesystems (like ntfs-3g) that return EEXIST instead
of ENOTEMPTY (#518816)
2008-02-25 Matthias Clasen <mclasen@redhat.com>
* === Released 2.15.6 ===
......
......@@ -1295,6 +1295,12 @@ g_local_file_delete (GFile *file,
{
int errsv = errno;
/* Posix allows EEXIST too, but the more sane error
is G_IO_ERROR_NOT_FOUND, and its what nautilus
expects */
if (errsv == EEXIST)
errsv = ENOTEMPTY;
g_set_error (error, G_IO_ERROR,
g_io_error_from_errno (errsv),
_("Error removing file: %s"),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment