Bug 8112 - POSIX extension opens of a directory are denied with EISDIR.
Summary: POSIX extension opens of a directory are denied with EISDIR.
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.5
Classification: Unclassified
Component: File services (show other bugs)
Version: 3.5.8
Hardware: All All
: P5 normal
Target Milestone: ---
Assignee: Jeremy Allison
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-29 20:55 UTC by Jeremy Allison
Modified: 2011-04-29 23:28 UTC (History)
0 users

See Also:


Attachments
git-am fix for 3.6.0 (1.88 KB, patch)
2011-04-29 23:27 UTC, Jeremy Allison
no flags Details
torture test for previous patch (1.93 KB, patch)
2011-04-29 23:27 UTC, Jeremy Allison
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Allison 2011-04-29 20:55:03 UTC
POSIX allows the following:

int fd = open(directory_path, O_RDONLY, 0);

to succeed and return an fd. smbd currently disallows this in the POSIX extensions.
Comment 1 Jeremy Allison 2011-04-29 23:27:10 UTC
Created attachment 6434 [details]
git-am fix for 3.6.0
Comment 2 Jeremy Allison 2011-04-29 23:27:36 UTC
Created attachment 6435 [details]
torture test for previous patch
Comment 3 Jeremy Allison 2011-04-29 23:28:29 UTC
I made a mistake - this bug shouldn't be fixed for 3.5.x - these patches are 3.6.0 only. I will close this bug as we don't yet have open bugs for 3.6.x.

Jeremy.