about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorlogin (tilde.institute) <login@tilde.institute>2020-07-12 03:01:05 -0400
committerlogin (tilde.institute) <login@tilde.institute>2020-07-12 03:01:05 -0400
commitb73e169b72daff3f1edf991cd6e0613f44d6f3c4 (patch)
treed8e9766494233780b4bc46af654912c3b18c6963
parentc3cf1ffea6d49096936d7e910bde4c95536de323 (diff)
downloadtcoin-b73e169b72daff3f1edf991cd6e0613f44d6f3c4.tar.gz
Fixed bug in ntcoin_openbsd_tildeinstitute
Thanks to gbmor, I was able to replace base64 (fourmilab version) (which outputs \r\n and thus interferes with tr -d '\n') with gbase64 (the GNU coreutils version) which only outputs '\n'.
-rwxr-xr-xntcoin_openbsd_tildeinstitute2
-rw-r--r--[-rwxr-xr-x]scryptbin304096 -> 304096 bytes
2 files changed, 1 insertions, 1 deletions
diff --git a/ntcoin_openbsd_tildeinstitute b/ntcoin_openbsd_tildeinstitute
index da3be40..129e3b8 100755
--- a/ntcoin_openbsd_tildeinstitute
+++ b/ntcoin_openbsd_tildeinstitute
@@ -116,7 +116,7 @@ else
       /bin/echo "Sorry, '`/usr/local/bin/grealpath -s $1`/tcoin/secrets/tcoin_codez' already exists."
       exit 1
     else
-      /bin/echo "`cat /dev/urandom | base64 | ghead -c 512 | tr -d '\n' | tr '+' '-' | tr '/' '_'` `cat /dev/urandom | base64 | ghead -c 512 | tr -d '\n' | tr '+' '-' | tr '/' '_'`" > "`/usr/local/bin/grealpath -s $1`/tcoin/secrets/tcoin_codez"
+      /bin/echo "`cat /dev/urandom | gbase64 | ghead -c 512 | tr -d '\n' | tr '+' '-' | tr '/' '_'` `cat /dev/urandom | gbase64 | ghead -c 512 | tr -d '\n' | tr '+' '-' | tr '/' '_'`" > "`/usr/local/bin/grealpath -s $1`/tcoin/secrets/tcoin_codez"
       /bin/chmod 400 "`/usr/local/bin/grealpath -s $1`/tcoin/secrets/tcoin_codez"
     fi
   fi
diff --git a/scrypt b/scrypt
index 3c9a050..3c9a050 100755..100644
--- a/scrypt
+++ b/scrypt
Binary files differ