From df22f8dbd91699713ac99fcab391093bc6c77651 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 13 Oct 2009 13:03:39 -0700 Subject: Catch one more erroneous use of errno. Jeremy. --- source3/smbd/aio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd/aio.c') diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c index 82e7b3ce15..37278b313c 100644 --- a/source3/smbd/aio.c +++ b/source3/smbd/aio.c @@ -420,7 +420,7 @@ static int handle_aio_write_complete(struct aio_extra *aio_ex, int errcode) DEBUG( 3,( "handle_aio_write: file %s wanted %u bytes. " "nwritten == %d. Error = %s\n", fsp_str_dbg(fsp), (unsigned int)numtowrite, - (int)nwritten, strerror(errno) )); + (int)nwritten, strerror(errcode) )); ret = errcode; ERROR_NT(map_nt_error_from_unix(ret)); -- cgit