bazzite/spec_files/unl0kr/0001-Remove-newline-from-password-output.patch
2024-04-20 18:57:10 -07:00

29 lines
1.0 KiB
Diff

From 20eba1c82a085678a5adb66bd39d70e2b3c8e216 Mon Sep 17 00:00:00 2001
From: undef <gitlab@undef.tools>
Date: Thu, 2 Mar 2023 08:34:04 +0000
Subject: Remove newline from password output
Forwarded: not-needed
The added newline breaks Debian's `keyscript` functionality which
expects just the password to be returned by the script.
This patch breaks the equivilent functionality in postmarketOS and
thus will not be applied upstream.
---
main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: unl0kr/main.c
===================================================================
--- unl0kr.orig/main.c 2023-12-21 08:58:00.687000000 +0000
+++ unl0kr/main.c 2023-12-21 08:58:34.243000000 +0000
@@ -330,7 +330,7 @@
static void print_password_and_exit(lv_obj_t *textarea) {
/* Print the password to STDOUT */
- printf("%s\n", lv_textarea_get_text(textarea));
+ printf("%s", lv_textarea_get_text(textarea));
/* Clear the screen so that when the password field was unobscured, it cannot
* leak via stale display buffers after we've exited */