diff options
author | Jeremy Allison <jra@samba.org> | 2007-03-05 23:40:03 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:18:24 -0500 |
commit | 4952fe368a40b239140b3035db6075427d237bb9 (patch) | |
tree | 4522aa1bd6ec5f4b627aa7fa2868297e4dcea99f /source3/client/client.c | |
parent | 242927bd5cae1d2ab8739b1c424e702ab97726b5 (diff) | |
download | samba-4952fe368a40b239140b3035db6075427d237bb9.tar.gz samba-4952fe368a40b239140b3035db6075427d237bb9.tar.bz2 samba-4952fe368a40b239140b3035db6075427d237bb9.zip |
r21714: Change the VFS interface to use struct timespec
for utimes - change the call to ntimes. This preserves
nsec timestamps we get from stat (if the system supports
it) and only maps back down to usec or sec resolution
on time set. Looks bigger than it is as I had to move
lots of internal code from using time_t and struct utimebuf
to struct timespec.
Jeremy.
(This used to be commit 8f3d530c5a748ea90f42ed8fbe68ae92178d4875)
Diffstat (limited to 'source3/client/client.c')
-rw-r--r-- | source3/client/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index a7bb56ba88..605beb2e06 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -387,7 +387,7 @@ static void display_finfo(file_info *finfo) finfo->name, attrib_string(finfo->mode), (double)finfo->size, - time_to_asc(&t)); + time_to_asc(t)); dir_total += finfo->size; } else { pstring afname; @@ -404,7 +404,7 @@ static void display_finfo(file_info *finfo) d_printf( "FILENAME:%s\n", afname); d_printf( "MODE:%s\n", attrib_string(finfo->mode)); d_printf( "SIZE:%.0f\n", (double)finfo->size); - d_printf( "MTIME:%s", time_to_asc(&t)); + d_printf( "MTIME:%s", time_to_asc(t)); fnum = cli_nt_create(cli, afname, CREATE_ACCESS_READ); if (fnum == -1) { DEBUG( 0, ("display_finfo() Failed to open %s: %s\n", @@ -2713,7 +2713,7 @@ static int cmd_newer(void) if (ok && (sys_stat(buf,&sbuf) == 0)) { newer_than = sbuf.st_mtime; DEBUG(1,("Getting files newer than %s", - time_to_asc(&newer_than))); + time_to_asc(newer_than))); } else { newer_than = 0; } |