summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/close.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c
index 0700aeaa0a..8b3010c1b2 100644
--- a/source3/smbd/close.c
+++ b/source3/smbd/close.c
@@ -233,7 +233,7 @@ with error %s\n", fsp->fsp_name, strerror(errno) ));
file_free(fsp);
if (err == -1 || err1 == -1)
- return -1;
+ return errno;
else
return 0;
}