From: Ralph Boehme Date: Mon, 15 Jun 2020 09:33:39 +0000 (+0200) Subject: vfs_error_inject: ignore path_ref_fd's X-Git-Tag: samba-4.14.0rc1~402 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d35fc7f5456c91325745d2914d539cd70763ae4;p=thirdparty%2Fsamba.git vfs_error_inject: ignore path_ref_fd's This avoids failing opens triggered by filename_convert() -> openat_pathref_fsp(). Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_error_inject.c b/source3/modules/vfs_error_inject.c index b0fbb652d65..2230b8a2991 100644 --- a/source3/modules/vfs_error_inject.c +++ b/source3/modules/vfs_error_inject.c @@ -115,7 +115,8 @@ static int vfs_error_inject_openat(struct vfs_handle_struct *handle, mode_t mode) { int error = inject_unix_error("openat", handle); - if (error != 0) { + + if (!fsp->fsp_flags.is_pathref && error != 0) { errno = error; return -1; }