diff options
author | Volker Lendecke <vlendec@samba.org> | 2004-04-26 13:11:59 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:51:20 -0500 |
commit | f789481101d38de5376254e62735891c17fbf07b (patch) | |
tree | 4d62df7638a49770fbaa759900cd6b6fb6a1e0a7 | |
parent | f880fe51b334847ebfe7be34f83fcee572f86352 (diff) | |
download | samba-f789481101d38de5376254e62735891c17fbf07b.tar.gz samba-f789481101d38de5376254e62735891c17fbf07b.tar.bz2 samba-f789481101d38de5376254e62735891c17fbf07b.zip |
r370: 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
(This used to be commit 588351d1b37a900eb90eddd80882170c201e9162)
-rw-r--r-- | source3/smbd/close.c | 2 |
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; } |