FreeBSD Bugzilla – Attachment 13214 Details for
Bug 25271
brandelf use to add the string for file(1) to use
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 530 bytes, created by
Jim.Pirzyk
on 2001-02-22 00:20:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Jim.Pirzyk
Created:
2001-02-22 00:20:00 UTC
Size:
530 bytes
patch
obsolete
>*** ./src/usr.bin/brandelf/brandelf.c.orig Fri Jul 7 01:32:13 2000 >--- ./src/usr.bin/brandelf/brandelf.c Wed Feb 21 16:11:21 2001 >*************** >*** 142,147 **** >--- 142,153 ---- > } > else { > buffer[EI_OSABI] = type; >+ >+ /* Also add the assocated string so file(1) finds it */ >+ strncpy(buffer+EI_ABIVERSION, >+ iselftype(buffer[EI_OSABI]), >+ EI_NIDENT-EI_ABIVERSION); >+ > lseek(fd, 0, SEEK_SET); > if (write(fd, buffer, EI_NIDENT) != EI_NIDENT) { > warn("error writing %s %d", argv[0], fd);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 25271
: 13214