glocalfile: Fix error code when trash not found

G_IO_ERROR_NOT_SUPPORTED is used as parameter for g_set_io_error(),
however, errno is expected instead and thus error code is set to 0,
which is wrong. Let's use ENOTSUP instead.
This commit is contained in:
Ondrej Holy 2018-06-08 13:40:04 +02:00
parent 15cdcd2e0b
commit 1cbb5dd95f

View File

@ -1967,7 +1967,7 @@ g_local_file_trash (GFile *file,
{
g_set_io_error (error,
_("Unable to find toplevel directory to trash %s"),
file, G_IO_ERROR_NOT_SUPPORTED);
file, ENOTSUP);
return FALSE;
}