core: Use g_io_error_from_errno() to ensure we have more useful error codes

This commit is contained in:
Colin Walters 2011-12-02 11:39:21 -05:00
parent 7fc625c967
commit c7235182a4
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ ot_util_set_error_from_errno (GError **error,
{ {
g_set_error_literal (error, g_set_error_literal (error,
G_IO_ERROR, G_IO_ERROR,
0, g_io_error_from_errno (saved_errno),
g_strerror (saved_errno)); g_strerror (saved_errno));
errno = saved_errno; errno = saved_errno;
} }