summary refs log tree commit diff
path: root/utils/ftc
diff options
context:
space:
mode:
authorlogin2021-10-17 16:25:53 +0000
committerlogin2021-10-17 16:25:53 +0000
commitb0de38eafe7fe897f907066dc1ef923073690d5d (patch)
tree7abbf3ee84417762fadbc7493e0ff119aeba3e9d /utils/ftc
parentbd53b1ec0cf20e79828e8e95576a44f1eaf004db (diff)
pcoin_keys fixed
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.
Diffstat (limited to 'utils/ftc')
-rwxr-xr-xutils/ftc6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/ftc b/utils/ftc
new file mode 100755
index 0000000..132c41d
--- /dev/null
+++ b/utils/ftc
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+#ftc -> full tcoin check
+
+
+/usr/bin/diff <(/bin/ls /home/login/tcoin/*.txt | /usr/bin/xargs -n 1 /bin/cat) <(/bin/ls /home/login/tcoin/messages/* | /usr/bin/xargs -n 1 /home/login/bin/mstss)