Bug 9965 - We shouldn't try to set a lease on special files like pipes
Summary: We shouldn't try to set a lease on special files like pipes
Status: ASSIGNED
Alias: None
Product: Samba 3.6
Classification: Unclassified
Component: VFS Modules (show other bugs)
Version: 3.6.15
Hardware: All All
: P5 normal
Target Milestone: ---
Assignee: Andreas Schneider
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
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.