summary refs log tree commit diff
path: root/popen2.c
AgeCommit message (Collapse)Author
2024-10-13Fixed tcoin code1 and tcoin code2 leak, and refactored file permissions into ↵login
a preprocessor macro Fixed issue with tcoin code1 and tcoin code2. Now they're sent via stdin instead of as arguments to tcoin. Refactored file permissions into a preprocessor macro.
2021-10-17pcoin_keys fixedlogin
Thanks to ~jmjl, I was able to find that pcoin_keys didn't work. To fix it, tcoin uses sneaky magic but with stdin isntead of an argument, and a new library imported called popen2, that lets me send both stdin and receive stdout, to successfully get "ls <path to the pcoin_keys directory>" to work (it execl's another instance of the tcoin comand so that it runs under setuid instead of as the original user who ran it.