printing: use correct error out in file_version_is_newer() when openat_pathref_fsp...
authorRalph Boehme <slow@samba.org>
Tue, 16 Feb 2021 13:19:51 +0000 (14:19 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 22 Feb 2021 10:53:26 +0000 (10:53 +0000)
commit5b1a5b776a7bed76695599211397469666fb2142
treed578591910f858498c0c6ae8158b8616ec88407d
parentd339556659c9eacd5a97ff40f1f24e3cb3aeccb4
printing: use correct error out in file_version_is_newer() when openat_pathref_fsp() fails

Fixes a regression introduced by cbe25e1777d0c43c21e8acc2cea79fd03fdaf2ea: if
there's no existing file, openat_pathref_fsp() will fail with
NT_STATUS_OBJECT_NAME_NOT_FOUND which must be handled the same way it is done by
the SMB_VFS_CREATE_FILE() call below.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14635

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
(cherry picked from commit 8c1fd86db873f0326faf1cefa731a03709f8ac7f)
source3/printing/nt_printing.c