summaryrefslogtreecommitdiffstats
path: root/source/smbd/vfs.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-01-30 22:20:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:32 -0500
commit7e17e54cb729e34c935927fe69a43690c7f446ae (patch)
treec341c01ef7e2668b09a5c2f2eed1977f6a1b2aca /source/smbd/vfs.c
parent1f3c2b2abca6f1b3b59b73df038832e14106ff76 (diff)
downloadsamba-7e17e54cb729e34c935927fe69a43690c7f446ae.tar.gz
samba-7e17e54cb729e34c935927fe69a43690c7f446ae.tar.xz
samba-7e17e54cb729e34c935927fe69a43690c7f446ae.zip
r21063: All case statements are now NTSTATUS returning
functions. Now to factor out the post processing and make all cases behave the same (no mixture of "early returns" and "break"s. Jeremy
Diffstat (limited to 'source/smbd/vfs.c')
-rw-r--r--source/smbd/vfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/smbd/vfs.c b/source/smbd/vfs.c
index 47ac9ef4619..643c48cd27c 100644
--- a/source/smbd/vfs.c
+++ b/source/smbd/vfs.c
@@ -454,6 +454,7 @@ int vfs_allocate_file_space(files_struct *fsp, SMB_BIG_UINT len)
if (((SMB_OFF_T)len) < 0) {
DEBUG(0,("vfs_allocate_file_space: %s negative len requested.\n", fsp->fsp_name ));
+ errno = EINVAL;
return -1;
}