Browse Source

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@
OPENBSD_5_9
rpe 9 years ago
parent
commit
399d9cc7ee
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/rc

+ 2
- 2
src/etc/rc View File

@ -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. # 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 # Output and error are redirected to console by init, and the console is the
@ -77,7 +77,7 @@ wsconsctl_conf() {
stripcom /etc/wsconsctl.conf | stripcom /etc/wsconsctl.conf |
while read _line; do while read _line; do
wsconsctl "$_line"
eval "wsconsctl $_line"
done done
} }


Loading…
Cancel
Save