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.
Created attachment 6434 [details] git-am fix for 3.6.0
Created attachment 6435 [details] torture test for previous patch
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.