printing: use correct error out in get_correct_cversion() when openat_pathref_fsp...
commit1f520ec35e151bcde8103ba6cfbdced67b242d0a
authorRalph Boehme <slow@samba.org>
Tue, 16 Feb 2021 13:24:05 +0000 (16 14:24 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 22 Feb 2021 10:53:26 +0000 (22 10:53 +0000)
tree6d0485c2a894dce6ec745536b09ed93566e334e2
parentb30a1950e260fb7fd098da2deff608b7c505ef0d
printing: use correct error out in get_correct_cversion() when openat_pathref_fsp() fails

Fixes a regression introduced by a74f0af1a91fe0bbc68e4d41d65f43ec383ae8bf: 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
RN: Printerdriver upload 4.14rc1 not working

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Wed Feb 17 19:53:00 UTC 2021 on sn-devel-184

(cherry picked from commit 718f7b1a84f1c6eb35d52232a8573370f45add56)
source3/printing/nt_printing.c