Bug 9965 - We shouldn't try to set a lease on special files like pipes
We shouldn't try to set a lease on special files like pipes
Status: ASSIGNED
Product: Samba 3.6
Classification: Unclassified
Component: VFS Modules
3.6.15
All All
: P5 normal
: ---
Assigned To: Andreas Schneider
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-22 08:37 UTC by Andreas Schneider
Modified: 2013-06-22 08:37 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schneider 2013-06-22 08:37:01 UTC
In source3/smbd/oplock_linux.c we call
 
       ret = fcntl(fd, F_SETLEASE, leasetype);

but don't check if the fd is a regular file.