]> 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)
committerVolker Lendecke <vl@samba.org>
Fri, 10 Oct 2025 10:40:30 +0000 (10:40 +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>
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;
        }