mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
11
app-misc/vlock/files/vlock-2.2.3-echo-printf.patch
Normal file
11
app-misc/vlock/files/vlock-2.2.3-echo-printf.patch
Normal 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."
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user