Fix bug #6421 - POSIX read-only open fails on read-only shares. The change to smbd...
authorJeremy Allison <jra@samba.org>
Sat, 30 May 2009 20:28:03 +0000 (13:28 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 10 Aug 2009 16:01:34 +0000 (18:01 +0200)
commit724016d4a670e7cbbc2c127f9166fb8a6affcbb1
tree99eb6bae37bd934ec4c3c92d8ff50a4ef5c8cca5
parent59bae47f7953651cf4b46b23d06caf654b306153
Fix bug #6421 - POSIX read-only open fails on read-only shares. The change to smbd/trans2.c opens up SETFILEINFO calls to POSIX_OPEN only. The change to first smbd/open.c closes 2 holes that would have been exposed by allowing POSIX_OPENS on readonly shares, and their ability to set arbitrary flags permutations. The O_CREAT -> O_CREAT|O_EXCL change removes an illegal combination (O_EXCL without O_CREAT) that previously was being passed down to the open syscall. Jeremy.
(cherry picked from commit 79f26472b4ae561ec00c30f31dd63ccab6dfc0c4)
(cherry picked from commit fedc34b47664439b0d066c087d9bfa5a34c81fff)
source/smbd/open.c
source/smbd/trans2.c