Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 451146be authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv4: Fix open(O_TRUNC) and ftruncate() error handling



If the file wasn't opened for writing, then truncate and ftruncate
need to report the appropriate errors.

Reported-by: default avatarMiklos Szeredi <miklos@szeredi.hu>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@vger.kernel.org
parent 55725513
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment