From 399d9cc7ee51fec2c8a03d9d7eb0f4943d07b18c Mon Sep 17 00:00:00 2001 From: rpe <> Date: Sat, 22 Aug 2015 10:45:59 +0000 Subject: [PATCH] Restore previous behaviour for wsconsctl_conf(). In wsconsctl.conf configuration variables can contain doublequotes which are removed by the shell if wsconsctl is used interactively. In scripts, without using eval, these doublequotes are preserved and the wsconsctl command complains about "illegal character in input". Found by and OK jmc@ With feedback from and OK krw@, halex@ --- src/etc/rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/rc b/src/etc/rc index f28f0e99..43daf540 100644 --- a/src/etc/rc +++ b/src/etc/rc @@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.457 2015/08/13 17:24:42 rpe Exp $ +# $OpenBSD: rc,v 1.458 2015/08/22 10:45:59 rpe Exp $ # System startup script run by init on autoboot or after single-user. # Output and error are redirected to console by init, and the console is the @@ -77,7 +77,7 @@ wsconsctl_conf() { stripcom /etc/wsconsctl.conf | while read _line; do - wsconsctl "$_line" + eval "wsconsctl $_line" done }