Catch one more erroneous use of errno.
authorJeremy Allison <jra@samba.org>
Tue, 13 Oct 2009 20:03:39 +0000 (13:03 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 13 Oct 2009 20:03:39 +0000 (13:03 -0700)
Jeremy.

source3/smbd/aio.c

index 82e7b3ce15f90fc4a97a462ffcb673ad6982de27..37278b313ccd48f49470f1e98f33483bb33ee9f0 100644 (file)
@@ -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));