Fix for older versions of 'dd' that did not support the 'status=none' flag.

This commit is contained in:
LoRd_MuldeR 2020-11-03 23:19:00 +01:00
parent 6a37d76f35
commit f889facba1
Signed by: mulder
GPG Key ID: 2B5913365F57E03F
2 changed files with 7 additions and 2 deletions

View File

@ -3,7 +3,11 @@
/* This work has been released under the CC0 1.0 Universal license! */
/******************************************************************************/
#define _CRT_SECURE_NO_WARNINGS 1
#ifdef _WIN32
# define _CRT_SECURE_NO_WARNINGS 1
#else
# define _GNU_SOURCE 1
#endif
#include <slunkcrypt.h>
#include "utils.h"

View File

@ -30,7 +30,8 @@ printf "\033[1;36m\n------------------------------------------------------------
printf "\033[1;36mProfiling\n"
printf "\033[1;36m------------------------------------------------------------------------------\033[0m\n\n"
dd bs=1024 count=102400 status=none < ${RANDOM_SOURCE} > /tmp/${TMP_NAME}.dat
dd bs=1024 count=102400 < ${RANDOM_SOURCE} > /tmp/${TMP_NAME}.dat
printf "\n"
./frontend/bin/slunkcrypt${SUFFIX} --self-test
./frontend/bin/slunkcrypt${SUFFIX} --encrypt 'q4cmK7FEK7@v' /tmp/${TMP_NAME}.dat /tmp/${TMP_NAME}.enc