fix O_EXCL handling for devices
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 30 Jul 2012 07:50:30 +0000 (11:50 +0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 30 Jul 2012 07:50:30 +0000 (11:50 +0400)
commitf8310c59201b183ebee2e3fe0c7242f5729be0af
tree534606455dd90b2ec0ee9aa53bc4e51ce102b609
parentbf8848918d751c1fb86f6514a75bf8d406f1c3c3
fix O_EXCL handling for devices

O_EXCL without O_CREAT has different semantics; it's "fail if already opened",
not "fail if already exists".  commit 71574865 broke that...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c