0# touch a, touch b, touch c 1# python3 args.py < a b c 2 3importsys 4if __name__ =='__main__':
5 print(sys.argv)
6# ['args.py', 'b', 'c'] 7 8# if you add some lines to "a", 9# you'll see them here..10for line in sys.stdin:
11 print(line)
The first argument in bin_PROGRAMS (bitcoind) was being silently
dropped and never passed into the check-security.py or check-symbols.py scripts.
This has been the case since the scripts were added to the makefile in
https://github.com/bitcoin/bitcoin/commit/f3d3eaf78eb51238d799d8f20a585550d1567719.
Example of the behavior:
```python
# touch a, touch b, touch c
# python3 args.py < a b c
import sys
if __name__ == '__main__':
print(sys.argv)
# ['args.py', 'b', 'c']
# if you add some lines to "a",
# you'll see them here..
for line in sys.stdin:
print(line)
```
71af793512
fanquake added the label
Scripts and tools
on Jan 3, 2020
fanquake added the label
Needs backport (0.19)
on Jan 3, 2020
fanquake added the label
Needs gitian build
on Jan 3, 2020
fanquake added the label
Needs backport (0.18)
on Jan 3, 2020
luke-jr approved
luke-jr
commented at 8:02 pm on January 3, 2020:
member
utACK
laanwj
commented at 1:18 pm on January 4, 2020:
member
ACK71af793512100ee7d508c3fb815af47925fe80ba
Very good catch, this has been in there forever and no one noticed.
DrahtBot
commented at 1:57 pm on January 4, 2020:
member
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2024-11-17 18:12 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me