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)
committerGünther Deschner <gd@samba.org>
Wed, 17 Feb 2021 18:48:36 +0000 (18:48 +0000)
commit8c1fd86db873f0326faf1cefa731a03709f8ac7f
treeeac84519f07cdca38b8bf477d17f23c6bc190935
parent09a8f409e598e94e3595843c52912b6906c73a84
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>
source3/printing/nt_printing.c