]> git.ipfire.org Git - thirdparty/samba.git/commit
smbd: Slightly simplify open_file()
authorVolker Lendecke <vl@samba.org>
Fri, 1 Sep 2023 14:31:03 +0000 (16:31 +0200)
committerRalph Boehme <slow@samba.org>
Thu, 5 Oct 2023 12:58:33 +0000 (12:58 +0000)
commit236df26a1f4451f5e7fd66fe52ce7fda77bc9abf
treedd1b0ccb293571a316145dbf6f3a780ce674f621
parent2a53fdeb449f4a8521ee0f82026dfbdf8b38928b
smbd: Slightly simplify open_file()

Replace "truncating" variable reference with what it was defined
as. We use "(flags & O_TRUNC)" a few lines above, so it can't be that
bad.

After we set it to "false" further down, it was never used again.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/open.c