mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
r21664: Fix #4425 - patch from Jason Mader <jason@ncac.gwu.edu>.
Jeremy
This commit is contained in:
parent
32b040fe05
commit
24a4d4d7ad
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user