From 18a444174687af5ebe1af4e3dd13a744421b4436 Mon Sep 17 00:00:00 2001 From: Laan Tungir Date: Sat, 27 Dec 2025 12:13:57 -0500 Subject: [PATCH] Version v0.3.47 - -m Fix directory decryption - skip pause for temp files to allow extraction to continue --- README.md | 6 +++--- src/crypto.c | 7 +++++-- src/main.h | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 29c4788..4533310 100644 --- a/README.md +++ b/README.md @@ -58,14 +58,14 @@ One-time pads can be trivially encrypted and decrypted using pencil and paper, m ### Download Pre-Built Binaries -**[Download Current Linux x86](https://git.laantungir.net/laantungir/otp/releases/download/v0.3.45/otp-v0.3.45-linux-x86_64)** +**[Download Current Linux x86](https://git.laantungir.net/laantungir/otp/releases/download/v0.3.46/otp-v0.3.46-linux-x86_64)** -**[Download Current Raspberry Pi 64](https://git.laantungir.net/laantungir/otp/releases/download/v0.3.45/otp-v0.3.45-linux-arm64)** +**[Download Current Raspberry Pi 64](https://git.laantungir.net/laantungir/otp/releases/download/v0.3.46/otp-v0.3.46-linux-arm64)** After downloading: ```bash # Rename for convenience, then make executable -mv otp-v0.3.45-linux-x86_64 otp +mv otp-v0.3.46-linux-x86_64 otp chmod +x otp # Run it diff --git a/src/crypto.c b/src/crypto.c index ec2f461..4a137c2 100644 --- a/src/crypto.c +++ b/src/crypto.c @@ -1133,8 +1133,11 @@ int decrypt_binary_file(FILE* input_fp, const char* output_file) { printf("File decrypted successfully: %s\n", output_file); printf("Restored permissions and metadata\n"); - // Pause before returning to menu to let user see the success message - print_centered_header("File Decryption Complete", 1); + // Only pause if output is not a temporary file (directory decryption uses /tmp/) + if (strncmp(output_file, "/tmp/", 5) != 0) { + // Pause before returning to menu to let user see the success message + print_centered_header("File Decryption Complete", 1); + } // Cleanup free(encrypted_data); diff --git a/src/main.h b/src/main.h index 828dffb..933c601 100644 --- a/src/main.h +++ b/src/main.h @@ -23,7 +23,7 @@ #include // Version - Updated automatically by build.sh -#define OTP_VERSION "v0.3.45" +#define OTP_VERSION "v0.3.46" // Constants #define MAX_INPUT_SIZE 4096