summaryrefslogtreecommitdiff
path: root/source3/smbd/dir.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-04-01 11:40:23 +0200
committerStefan Metzmacher <metze@samba.org>2008-04-07 12:29:29 +0200
commit851cadba51b00b326c5f040f23f95932aec53105 (patch)
tree9f89c0c7616a455e81064cb23cdcb9f35392162b /source3/smbd/dir.c
parent406da3a9628f7e631ad17ec3c37c841359d0ccbf (diff)
downloadsamba-851cadba51b00b326c5f040f23f95932aec53105.tar.gz
samba-851cadba51b00b326c5f040f23f95932aec53105.tar.bz2
samba-851cadba51b00b326c5f040f23f95932aec53105.zip
locking: combine get_delete_on_close_flag() and get_write_time() into get_file_infos()
This means we need to fetch the record only once. metze (This used to be commit 4130b873291d39e363184fe4e38dc1f24ebe5056)
Diffstat (limited to 'source3/smbd/dir.c')
-rw-r--r--source3/smbd/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c
index 8531d6250d..5fc2e3719e 100644
--- a/source3/smbd/dir.c
+++ b/source3/smbd/dir.c
@@ -886,7 +886,7 @@ bool get_dir_entry(TALLOC_CTX *ctx,
*date = sbuf.st_mtime;
fileid = vfs_file_id_from_sbuf(conn, &sbuf);
- write_time_ts = get_write_time(fileid);
+ get_file_infos(fileid, NULL, &write_time_ts);
if (!null_timespec(write_time_ts)) {
*date = convert_timespec_to_time_t(write_time_ts);
}