X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fopen.c;h=7931f76acc2beede0298747df1d505b30cd225b4;hb=a4bf06d58f219230ee38e338fdda225973d44aa1;hp=d53e29895082306747de0998c730159b73d08528;hpb=55c62960b0a7f378a9ab5237a2f9cf02dfe95a36;p=karo-tx-linux.git diff --git a/fs/open.c b/fs/open.c index d53e29895082..7931f76acc2b 100644 --- a/fs/open.c +++ b/fs/open.c @@ -823,7 +823,7 @@ static inline int build_open_flags(int flags, umode_t mode, struct open_flags *o int lookup_flags = 0; int acc_mode; - if (flags & O_CREAT) + if (flags & (O_CREAT | __O_TMPFILE)) op->mode = (mode & S_IALLUGO) | S_IFREG; else op->mode = 0;