Fix bug #6421 - POSIX read-only open fails on read-only shares. The change to smbd...
commit79f26472b4ae561ec00c30f31dd63ccab6dfc0c4
authorJeremy Allison <jra@samba.org>
Sat, 30 May 2009 20:28:03 +0000 (30 13:28 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 17 Jun 2009 08:45:33 +0000 (17 10:45 +0200)
tree160c59ee81733c49b50e67a4d025e34e9773b41a
parenteb3889c8b745023bfd7956bfcd961adbe78b6cea
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.
source/smbd/open.c
source/smbd/trans2.c