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

Fixes a regression introduced by ef5e913bca584f0232d5bfff14df4ccba2dda35c: 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 70063c523bff5e471eac2b011b243c5aa0c4bee1)
source3/printing/nt_printing.c