Skip to content
Commit 724762fa authored by Pierrick Guillaume's avatar Pierrick Guillaume Committed by Anas Nashif
Browse files

fs: open: fix zfp flags not set when calling truncate



If filesystem relies on zfp flags being set after open, this can lead to
inconsistency with the current implementation of FS_O_TRUNC.
Move the assignment of zfp->flags before any other call to fs api to avoid
such issues.

Signed-off-by: default avatarPierrick Guillaume <pierguill@gmail.com>
parent a8371174
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment