From b73e169b72daff3f1edf991cd6e0613f44d6f3c4 Mon Sep 17 00:00:00 2001 From: "login (tilde.institute)" Date: Sun, 12 Jul 2020 03:01:05 -0400 Subject: 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'. --- ntcoin_openbsd_tildeinstitute | 2 +- scrypt | Bin 2 files changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 scrypt 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 old mode 100755 new mode 100644 -- cgit 1.4.1-2-gfad0