vfs: do_last(): only return EISDIR for O_CREAT
authorMiklos Szeredi <mszeredi@suse.cz>
Mon, 21 May 2012 15:30:12 +0000 (17:30 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 1 Jun 2012 16:11:59 +0000 (12:11 -0400)
commit050ac841ea90610067fec26150574be8c6077738
tree9cad4c8ddc28fc4d22715c6a72ade663a5063815
parentaf2f55426d1d888dcc0ba8dc9e9deb49fae38e38
vfs: do_last(): only return EISDIR for O_CREAT

This allows this code to be shared between O_CREAT and plain opens.

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