printing: use openat_pathref_fsp() in file_version_is_newer()
authorRalph Boehme <slow@samba.org>
Thu, 12 Nov 2020 11:38:43 +0000 (12:38 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:31 +0000 (09:08 +0000)
commitcbe25e1777d0c43c21e8acc2cea79fd03fdaf2ea
treeeb5921f8accc35c642ad44ec3a18e0c6fce2612b
parente8a49d0ec9e4fc31e1b2a8f93a3d36b2a3caed50
printing: use openat_pathref_fsp() in file_version_is_newer()

Ensures we have a pathref handle in the smb_fname we pass to
SMB_VFS_CREATE_FILE().

As the create_disposition is FILE_OPEN we just return the error if
openat_pathref_fsp() fails

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/printing/nt_printing.c