Commit 55aa2e09 authored by Steve French's avatar Steve French

[[CIFS] Pass truncate open flag through on file open in case setattr fails

on set size to zero.
Signed-off-by: default avatarSebastian Voitzsch <sebastoam/vpotzscj@web.de>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 08775834
......@@ -84,6 +84,8 @@ static inline int cifs_get_disposition(unsigned int flags)
return FILE_OVERWRITE_IF;
else if ((flags & O_CREAT) == O_CREAT)
return FILE_OPEN_IF;
else if ((flags & O_TRUNC) == O_TRUNC)
return FILE_OVERWRITE;
else
return FILE_OPEN;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment