summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2020-06-22 12:08:40 +0200
committerPatrice Clement <monsieurp@gentoo.org>2020-06-22 12:09:37 +0200
commit7c9c4bb93ca357ee64c8e040cc9f079ed3261e16 (patch)
tree3622714c5806cf7cb0ce34576275a24cfb3febcb /app-misc
parentdev-libs/check: 0.15.0 release (diff)
downloadgentoo-7c9c4bb93ca357ee64c8e040cc9f079ed3261e16.tar.gz
gentoo-7c9c4bb93ca357ee64c8e040cc9f079ed3261e16.tar.bz2
gentoo-7c9c4bb93ca357ee64c8e040cc9f079ed3261e16.zip
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>
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/vlock/files/vlock-2.2.3-echo-printf.patch11
-rw-r--r--app-misc/vlock/vlock-2.2.3-r1.ebuild4
2 files changed, 15 insertions, 0 deletions
diff --git a/app-misc/vlock/files/vlock-2.2.3-echo-printf.patch b/app-misc/vlock/files/vlock-2.2.3-echo-printf.patch
new file mode 100644
index 000000000000..fd3653fb2824
--- /dev/null
+++ b/app-misc/vlock/files/vlock-2.2.3-echo-printf.patch
@@ -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."
diff --git a/app-misc/vlock/vlock-2.2.3-r1.ebuild b/app-misc/vlock/vlock-2.2.3-r1.ebuild
index b6c8a2c4b177..6bac4b08b79e 100644
--- a/app-misc/vlock/vlock-2.2.3-r1.ebuild
+++ b/app-misc/vlock/vlock-2.2.3-r1.ebuild
@@ -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
}