From: Ralph Boehme Date: Fri, 1 Aug 2025 15:28:04 +0000 (+0200) Subject: smbd: don't use sticky write times on POSIX handles X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=795a8c0e84f2bf2b70c8070737183e33f4254a54;p=thirdparty%2Fsamba.git smbd: don't use sticky write times on POSIX handles BUG: https://bugzilla.samba.org/show_bug.cgi?id=15926 Signed-off-by: Ralph Boehme Reviewed-by: Volker Lendecke --- diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c index c7ff427d7e3..331eac83ab8 100644 --- a/source3/smbd/dosmode.c +++ b/source3/smbd/dosmode.c @@ -1277,6 +1277,9 @@ done: void set_sticky_write_time_fsp(struct files_struct *fsp, struct timespec mtime) { + if (fsp->fsp_flags.posix_open) { + return; + } if (is_omit_timespec(&mtime)) { return; }