[PATCH] fs: Fix file mode for O_TMPFILE

2013-08-01 Thread Andy Lutomirski
O_TMPFILE, like O_CREAT, should respect the requested mode and should create regular files. This fixes two bugs: O_TMPFILE required privilege (because the mode ended up as 000) and it produced bogus inodes with no type. Signed-off-by: Andy Lutomirski --- fs/open.c | 2 +- 1 file changed, 1

[PATCH] fs: Fix file mode for O_TMPFILE

2013-08-01 Thread Andy Lutomirski
O_TMPFILE, like O_CREAT, should respect the requested mode and should create regular files. This fixes two bugs: O_TMPFILE required privilege (because the mode ended up as 000) and it produced bogus inodes with no type. Signed-off-by: Andy Lutomirski l...@amacapital.net --- fs/open.c | 2 +- 1