]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: don't use sticky write times on POSIX handles
authorRalph Boehme <slow@samba.org>
Fri, 1 Aug 2025 15:28:04 +0000 (17:28 +0200)
committerJule Anger <janger@samba.org>
Wed, 15 Oct 2025 15:07:13 +0000 (15:07 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15926

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit 795a8c0e84f2bf2b70c8070737183e33f4254a54)

source3/smbd/dosmode.c

index 9a8ecf6e0a7c4a4fbad35c30154052560c4897cb..ab45f9edbb913227155558fbe0d0c0b5e17affc4 100644 (file)
@@ -1279,6 +1279,10 @@ bool set_sticky_write_time_fsp(struct files_struct *fsp, struct timespec mtime)
 {
        bool ok;
 
+       if (fsp->fsp_flags.posix_open) {
+               return true;
+       }
+
        if (is_omit_timespec(&mtime)) {
                return true;
        }