Commit 3acbbb0
Fix fakeroot build by using od(1) to check 64-bit ELFs (#943)
bin/package:
- Use od(1) to check the ELF header if the file command fails.
This allows ksh to build and install correctly in fakeroot
environments without encountering bogus seccomp restrictions.
- Check the first five bytes to guarantee it's actually an ELF
binary.
- Return 'Unknown bits' if it's neither a 64-bit ELF nor 32-bit
ELF (i.e. it could be anything). This isn't functionally
different but is better for clarity.
Resolves: #9191 parent 8aef678 commit 3acbbb0
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1527 | 1527 | | |
1528 | 1528 | | |
1529 | 1529 | | |
1530 | | - | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
1531 | 1542 | | |
1532 | 1543 | | |
1533 | 1544 | | |
| |||
0 commit comments