From f789481101d38de5376254e62735891c17fbf07b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 26 Apr 2004 13:11:59 +0000 Subject: 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) --- source3/smbd/close.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd') 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; } -- cgit