mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-20 15:26:43 +01:00
Fix ranlib to work with odd-length extended names.
Submitted by: Jim Leppek <jleppek@harris.com>
This commit is contained in:
parent
f2d642f969
commit
74e1c9782c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11996
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user