From c7235182a471bc33cdc45eafb135aece981d504e Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 2 Dec 2011 11:39:21 -0500 Subject: [PATCH] core: Use g_io_error_from_errno() to ensure we have more useful error codes --- src/libotutil/ot-unix-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libotutil/ot-unix-utils.c b/src/libotutil/ot-unix-utils.c index 2a2697f8..7b709ff9 100644 --- a/src/libotutil/ot-unix-utils.c +++ b/src/libotutil/ot-unix-utils.c @@ -233,7 +233,7 @@ ot_util_set_error_from_errno (GError **error, { g_set_error_literal (error, G_IO_ERROR, - 0, + g_io_error_from_errno (saved_errno), g_strerror (saved_errno)); errno = saved_errno; }