diff options
author | Jeremy Allison <jra@samba.org> | 2007-03-02 20:56:18 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:18:22 -0500 |
commit | 6deb189abbc316deb57ecdc1242295d14b205cc9 (patch) | |
tree | 99b6cb75269c34e633b44bb40711d23ca94bf9b6 /source3/modules | |
parent | 9f8e8e1aac9262da22036e7aacca26e164450889 (diff) | |
download | samba-6deb189abbc316deb57ecdc1242295d14b205cc9.tar.gz samba-6deb189abbc316deb57ecdc1242295d14b205cc9.tar.bz2 samba-6deb189abbc316deb57ecdc1242295d14b205cc9.zip |
r21664: Fix #4425 - patch from Jason Mader <jason@ncac.gwu.edu>.
Jeremy
(This used to be commit 24a4d4d7adefc4590f7e38cc72f54dc692cf9856)
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_default.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index bd7bea5258..c0b80e1775 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -786,7 +786,7 @@ static BOOL vfswrap_getlock(vfs_handle_struct *handle, files_struct *fsp, int fd static int vfswrap_linux_setlease(vfs_handle_struct *handle, files_struct *fsp, int fd, int leasetype) { - int result; + int result = -1; START_PROFILE(syscall_linux_setlease); @@ -796,7 +796,8 @@ static int vfswrap_linux_setlease(vfs_handle_struct *handle, files_struct *fsp, return -1; result = linux_setlease(fd, leasetype); - +#else + errno = ENOSYS; #endif END_PROFILE(syscall_linux_setlease); return result; |