summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-04-26 13:14:21 +0000
committerVolker Lendecke <vlendec@samba.org>2004-04-26 13:14:21 +0000
commit5050b660a599ca5a2be69480aed005cf7767bf82 (patch)
treedbb6f9f69c76a481a1359f41590aad46f01c1b6c
parent5d314029a7ff5995729ab94070d3cc3107ce71e4 (diff)
downloadsamba-5050b660a599ca5a2be69480aed005cf7767bf82.tar.gz
r371: The 'it does never happen -- error on close()' does happen when you exceed
your quota on an AFS file system. The specific errno was thrown away by close_normal_file(). Thus we returned NT_STATUS_UNSUCCESSFUL and not NT_STATUS_DISK_FULL as we should. Fix that. (Not that this gives more sane Windows app behaviour.... :-( ) Jerry, jra, could you please look over this one, it's been quite a while since I touch file server code. Volker
-rw-r--r--source/smbd/close.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/close.c b/source/smbd/close.c
index 0700aeaa0a6..8b3010c1b2e 100644
--- a/source/smbd/close.c
+++ b/source/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;
}