summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-10-13 13:03:39 -0700
committerJeremy Allison <jra@samba.org>2009-10-13 13:03:39 -0700
commitdf22f8dbd91699713ac99fcab391093bc6c77651 (patch)
tree91642b223f8d2d25cf0283b4053d43a8adf530dc
parent367cb714a3aa7ba18bb44e246662bb567cea5754 (diff)
downloadsamba-df22f8dbd91699713ac99fcab391093bc6c77651.tar.gz
samba-df22f8dbd91699713ac99fcab391093bc6c77651.tar.bz2
samba-df22f8dbd91699713ac99fcab391093bc6c77651.zip
Catch one more erroneous use of errno.
Jeremy.
-rw-r--r--source3/smbd/aio.c2
1 files changed, 1 insertions, 1 deletions
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));