Fix bug #8974 - Kernel oplocks are broken when uid(file) != uid(process).
[samba.git] / source3 / modules / vfs_default.c
index 60b85d9730cd2eb3931d81c0fa8c9fcab17bbe32..0a341981740aeef196515424e4cfa0f41926420f 100644 (file)
@@ -1133,11 +1133,6 @@ static int vfswrap_linux_setlease(vfs_handle_struct *handle, files_struct *fsp,
        START_PROFILE(syscall_linux_setlease);
 
 #ifdef HAVE_KERNEL_OPLOCKS_LINUX
-       /* first set the signal handler */
-       if(linux_set_lease_sighandler(fsp->fh->fd) == -1) {
-               return -1;
-       }
-
        result = linux_setlease(fsp->fh->fd, leasetype);
 #else
        errno = ENOSYS;