mirror of
https://github.com/samba-team/samba.git
synced 2025-12-16 00:23:52 +03:00
r17800: Start using struct timespec internally for file times
on the wire. This allows us to go to nsec resolution for systems that support it. It should also now be easy to add a correct "create time" (birth time) for systems that support it (*BSD). I'll be watching the build farm closely after this one for breakage :-). Jeremy.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
3c54720285
commit
425280a1d2
@@ -355,7 +355,7 @@ static BOOL do_this_one(file_info *finfo)
|
||||
return False;
|
||||
}
|
||||
|
||||
if (newer_than && finfo->mtime < newer_than) {
|
||||
if (newer_than && finfo->mtime_ts.tv_sec < newer_than) {
|
||||
DEBUG(3,("newer_than %s failed\n", finfo->name));
|
||||
return(False);
|
||||
}
|
||||
@@ -375,7 +375,7 @@ static BOOL do_this_one(file_info *finfo)
|
||||
static void display_finfo(file_info *finfo)
|
||||
{
|
||||
if (do_this_one(finfo)) {
|
||||
time_t t = finfo->mtime; /* the time is assumed to be passed as GMT */
|
||||
time_t t = finfo->mtime_ts.tv_sec; /* the time is assumed to be passed as GMT */
|
||||
d_printf(" %-30s%7.7s %8.0f %s",
|
||||
finfo->name,
|
||||
attrib_string(finfo->mode),
|
||||
|
||||
Reference in New Issue
Block a user