[1023] in NetBSD-Development

home help back first fref pref prev next nref lref last post

Bugfix and acl change

daemon@ATHENA.MIT.EDU (Greg Hudson)
Thu Sep 28 19:02:01 1995

Date: Thu, 28 Sep 1995 19:01:45 -0400
From: Greg Hudson <ghudson@MIT.EDU>
To: netbsd-afs@MIT.EDU

afs_vnodeops.c was calling afs_TruncateAllSegments() (an unprototyped
function) with a quad_t size argument in the place of a long argument.
On a big-endian system, this was causing ftruncate() to truncate the
file to zero length regardless of what length was passed in.  (The
symptom is that ar generates a zero-length file when outputting to
AFSland.)  I added a cast in the function call, and ftruncate()
appears to work on deathtongue now.

I also added Yoav to the read acl on the source.  (He has read access
to the AFS sources elsewhere.)

home help back first fref pref prev next nref lref last post