diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-11-01 08:06:01 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-11-01 08:06:01 +0000 |
commit | 74e1c9782c9c50d81d3d4438672e24d6685adb1f (patch) | |
tree | d078f21f9c4c96984330cbe049772df8119d8d28 /usr.bin/ranlib | |
parent | f2d642f96918ab2a1ed3d55b84a649a522875507 (diff) | |
download | src-74e1c9782c9c50d81d3d4438672e24d6685adb1f.tar.gz src-74e1c9782c9c50d81d3d4438672e24d6685adb1f.zip |
Fix ranlib to work with odd-length extended names.
Submitted by: Jim Leppek <jleppek@harris.com>
Notes
Notes:
svn path=/head/; revision=11996
Diffstat (limited to 'usr.bin/ranlib')
-rw-r--r-- | usr.bin/ranlib/build.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ranlib/build.c b/usr.bin/ranlib/build.c index ff745bed3c28..03839f258c7c 100644 --- a/usr.bin/ranlib/build.c +++ b/usr.bin/ranlib/build.c @@ -103,7 +103,7 @@ build() /* Copy the saved objects into the archive. */ size = lseek(tfd, (off_t)0, SEEK_CUR); (void)lseek(tfd, (off_t)0, SEEK_SET); - SETCF(tfd, tname, afd, archive, RPAD|WPAD); + SETCF(tfd, tname, afd, archive, WPAD); copy_ar(&cf, size); (void)ftruncate(afd, lseek(afd, (off_t)0, SEEK_CUR)); (void)close(tfd); |