mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
s3: Use talloc_tos() in set_write_time()
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Dec 13 15:44:58 CET 2011 on sn-devel-104
This commit is contained in:
committed by
Volker Lendecke
parent
27e63b72a1
commit
1cf54ef4a6
@ -1438,7 +1438,7 @@ bool set_write_time(struct file_id fileid, struct timespec write_time)
|
|||||||
convert_timespec_to_time_t(write_time)),
|
convert_timespec_to_time_t(write_time)),
|
||||||
file_id_string_tos(&fileid)));
|
file_id_string_tos(&fileid)));
|
||||||
|
|
||||||
lck = get_share_mode_lock(NULL, fileid, NULL, NULL, NULL);
|
lck = get_share_mode_lock(talloc_tos(), fileid, NULL, NULL, NULL);
|
||||||
if (lck == NULL) {
|
if (lck == NULL) {
|
||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user