From 0a13237db9c691e125e74b309b7d8c1e3bc6bd6e Mon Sep 17 00:00:00 2001 From: Samuel Cabrero Date: Tue, 13 Apr 2021 17:13:39 +0200 Subject: [PATCH] s3: smbd: Use SMB_VFS_FNTIMES() instead of SMB_VFS_NTIMES() Signed-off-by: Samuel Cabrero Reviewed-by: Ralph Boehme --- source3/smbd/dosmode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c index d831aa8d60f..d5bb9e1fd41 100644 --- a/source3/smbd/dosmode.c +++ b/source3/smbd/dosmode.c @@ -1231,7 +1231,7 @@ int file_ntimes(connection_struct *conn, return 0; } - if (SMB_VFS_NTIMES(conn, fsp->fsp_name, ft) == 0) { + if (SMB_VFS_FNTIMES(fsp, ft) == 0) { return 0; } @@ -1256,7 +1256,7 @@ int file_ntimes(connection_struct *conn, { /* We are allowed to become root and change the filetime. */ become_root(); - ret = SMB_VFS_NTIMES(conn, fsp->fsp_name, ft); + ret = SMB_VFS_FNTIMES(fsp, ft); unbecome_root(); } -- 2.47.3