]> Git Repo - linux.git/blobdiff - fs/cifs/file.c
Merge branch 'from-linus' into upstream
[linux.git] / fs / cifs / file.c
index 5e59723c02bd72e20d790b60fcbae5add48a480d..e2b4ce1dad6680cc54d8af516e7cf876533361fd 100644 (file)
@@ -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;
 }
This page took 0.031653 seconds and 4 git commands to generate.