summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-07-03 23:50:00 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-07-03 23:50:00 +0000
commit723e29aa20cdd59c12ff02c4a7d7d7f45bc07a08 (patch)
tree9a057a48c248dd93b99b12ecc952c1e5d97d7096
parent6dbf3001ece375d603b50d7e4b49c72ba80f5930 (diff)
- (bal) minor correction to utimes() replacement. Patch by
onoe@sm.sony.co.jp
-rw-r--r--ChangeLog4
-rw-r--r--openbsd-compat/bsd-misc.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index cd6b353e4..9027d6b35 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
120020703 120020703
2 - (bal) Updated contrib/cygwin/ patch by vinschen@redhat.com 2 - (bal) Updated contrib/cygwin/ patch by vinschen@redhat.com
3 - (bal) minor correction to utimes() replacement. Patch by
4 onoe@sm.sony.co.jp
3 5
420020702 620020702
5 - (djm) Use PAM_MSG_MEMBER for PAM_TEXT_INFO messages, use xmalloc & 7 - (djm) Use PAM_MSG_MEMBER for PAM_TEXT_INFO messages, use xmalloc &
@@ -1208,4 +1210,4 @@
1208 - (stevesk) entropy.c: typo in debug message 1210 - (stevesk) entropy.c: typo in debug message
1209 - (djm) ssh-keygen -i needs seeded RNG; report from markus@ 1211 - (djm) ssh-keygen -i needs seeded RNG; report from markus@
1210 1212
1211$Id: ChangeLog,v 1.2314 2002/07/03 23:33:19 mouring Exp $ 1213$Id: ChangeLog,v 1.2315 2002/07/03 23:50:00 mouring Exp $
diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c
index fa48afea9..60526be9d 100644
--- a/openbsd-compat/bsd-misc.c
+++ b/openbsd-compat/bsd-misc.c
@@ -24,7 +24,7 @@
24 24
25#include "includes.h" 25#include "includes.h"
26 26
27RCSID("$Id: bsd-misc.c,v 1.8 2002/06/13 21:34:58 mouring Exp $"); 27RCSID("$Id: bsd-misc.c,v 1.9 2002/07/03 23:50:00 mouring Exp $");
28 28
29char *get_progname(char *argv0) 29char *get_progname(char *argv0)
30{ 30{
@@ -93,8 +93,8 @@ int utimes(char *filename, struct timeval *tvp)
93{ 93{
94 struct utimbuf ub; 94 struct utimbuf ub;
95 95
96 ub.actime = tvp->tv_sec; 96 ub.actime = tvp[0]->tv_sec;
97 ub.modtime = tvp->tv_usec; 97 ub.modtime = tvp[1]->tv_usec;
98 98
99 return(utime(filename, &ub)); 99 return(utime(filename, &ub));
100} 100}