]> git.ipfire.org Git - thirdparty/samba.git/commit
tdb: Update times in tdb_transaction_commit per fd, not per name
authorVolker Lendecke <vl@samba.org>
Fri, 14 Jun 2024 15:48:52 +0000 (17:48 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 24 Jun 2024 16:21:32 +0000 (16:21 +0000)
commit3f2e45aa163bfb7c0b3c459f82d2677a9cd8a443
tree8c6cf27b79a7ef924340242f1aa13fe4b43acff3
parent06aff34586d154cb183235c8775a59798b329b6c
tdb: Update times in tdb_transaction_commit per fd, not per name

We might have a relative filename in tdb->name, so we might do the
wrong thing here. And as we have the fd, why not use it...

We call futimens in vfs_default without #ifdef and it's Posix 2018 or
before. So I don't think we need to check for it.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/tdb/common/transaction.c