]> 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 14:01:04 +0000 (14:01 +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 c7ff427d7e3068eefa609785338e3184501cd95c..331eac83ab80d132a6dba1adbc8c9c87a72d3075 100644 (file)
@@ -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;
        }