diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-07-03 23:50:00 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-07-03 23:50:00 +0000 |
commit | 723e29aa20cdd59c12ff02c4a7d7d7f45bc07a08 (patch) | |
tree | 9a057a48c248dd93b99b12ecc952c1e5d97d7096 | |
parent | 6dbf3001ece375d603b50d7e4b49c72ba80f5930 (diff) |
- (bal) minor correction to utimes() replacement. Patch by
onoe@sm.sony.co.jp
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | openbsd-compat/bsd-misc.c | 6 |
2 files changed, 6 insertions, 4 deletions
@@ -1,5 +1,7 @@ | |||
1 | 20020703 | 1 | 20020703 |
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 | ||
4 | 20020702 | 6 | 20020702 |
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 | ||
27 | RCSID("$Id: bsd-misc.c,v 1.8 2002/06/13 21:34:58 mouring Exp $"); | 27 | RCSID("$Id: bsd-misc.c,v 1.9 2002/07/03 23:50:00 mouring Exp $"); |
28 | 28 | ||
29 | char *get_progname(char *argv0) | 29 | char *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 | } |