mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
- (bal) Correction to utimes() again.
This commit is contained in:
parent
5c98db50bf
commit
100d586df2
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
|
|
||||||
RCSID("$Id: bsd-misc.c,v 1.9 2002/07/03 23:50:00 mouring Exp $");
|
RCSID("$Id: bsd-misc.c,v 1.10 2002/07/08 21:09:41 mouring Exp $");
|
||||||
|
|
||||||
char *get_progname(char *argv0)
|
char *get_progname(char *argv0)
|
||||||
{
|
{
|
||||||
@ -93,8 +93,8 @@ int utimes(char *filename, struct timeval *tvp)
|
|||||||
{
|
{
|
||||||
struct utimbuf ub;
|
struct utimbuf ub;
|
||||||
|
|
||||||
ub.actime = tvp[0]->tv_sec;
|
ub.actime = tvp[0].tv_sec;
|
||||||
ub.modtime = tvp[1]->tv_usec;
|
ub.modtime = tvp[1].tv_sec;
|
||||||
|
|
||||||
return(utime(filename, &ub));
|
return(utime(filename, &ub));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user