app-misc/vlock: patch vlock shell script.

replace echo with printf.

Closes: https://bugs.gentoo.org/637598
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
This commit is contained in:
Patrice Clement
2020-06-22 12:08:40 +02:00
parent 417018f47a
commit 7c9c4bb93c
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
--- a/vlock 2020-06-22 10:03:48.700469805 -0000
+++ b/vlock 2020-06-22 10:03:57.880385148 -0000
@@ -17,7 +17,7 @@
set -e
# Magic characters to clear the terminal.
-CLEAR_SCREEN="`echo -e '\033[H\033[J'`"
+CLEAR_SCREEN="`printf '\033[H\033[J'`"
# Enter message that is common to different the messages.
VLOCK_ENTER_PROMPT="Please press [ENTER] to unlock."

View File

@@ -54,5 +54,9 @@ src_configure() {
src_install() {
default
# See bug #637598.
epatch "${FILESDIR}/${P}-echo-printf.patch"
use pam && pamd_mimic_system vlock auth
}