diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-01-31 23:50:36 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-01-31 23:50:36 +0000 |
commit | 991964495b65f3f6d3a043d8fc5b7fe8c20728d3 (patch) | |
tree | 4872af8f9cd29e10441b8a77eae6530abf2de685 /nfs/nfs.c | |
parent | 3ffa3f5df170bc879cc852c64a7e04fdc027f363 (diff) | |
download | hurd-991964495b65f3f6d3a043d8fc5b7fe8c20728d3.tar.gz hurd-991964495b65f3f6d3a043d8fc5b7fe8c20728d3.tar.bz2 hurd-991964495b65f3f6d3a043d8fc5b7fe8c20728d3.zip |
Sun Jan 31 18:39:09 1999 Thomas Bushnell, BSG <tb@mit.edu>
* nfs.c (xdr_encode_sattr_times): Convert nanoseconds to
microseconds correctly.
* ops.c (netfs_attempt_utimes): Handle new possibility that ATIME
or MTIME might be null.
Diffstat (limited to 'nfs/nfs.c')
-rw-r--r-- | nfs/nfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -270,9 +270,9 @@ xdr_encode_sattr_times (int *p, struct timespec *atime, struct timespec *mtime) *p++ = -1; /* gid */ *p++ = -1; /* size */ *p++ = htonl (atime->tv_sec); - *p++ = htonl (atime->tv_nsec * 1000); + *p++ = htonl (atime->tv_nsec / 1000); *p++ = htonl (mtime->tv_sec); - *p++ = htonl (mtime->tv_nsec * 1000); + *p++ = htonl (mtime->tv_nsec / 1000); } else { |