diff options
author | 2010-12-02 20:41:13 +0000 | |
---|---|---|
committer | 2010-12-02 20:41:13 +0000 | |
commit | 870123ceb64f2826e59b1d98f084da01ad73148f (patch) | |
tree | 809dc434836d2f7148f7038eb6e1ad803391d2b8 | |
parent | Track the parser status both per file (file_status), such that (diff) | |
download | wireguard-openbsd-870123ceb64f2826e59b1d98f084da01ad73148f.tar.xz wireguard-openbsd-870123ceb64f2826e59b1d98f084da01ad73148f.zip |
The awk's split() starts numbering array indices at 1 not 0.
-rw-r--r-- | etc/mklogin.conf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/mklogin.conf b/etc/mklogin.conf index 33321e7347e..e06deccfda5 100644 --- a/etc/mklogin.conf +++ b/etc/mklogin.conf @@ -5,7 +5,7 @@ # # Usage: mklogin.conf [overrides_file] < login.conf.in > login.conf.out # -# $OpenBSD: mklogin.conf,v 1.4 2009/03/24 20:34:51 sturm Exp $ +# $OpenBSD: mklogin.conf,v 1.5 2010/12/02 20:41:13 millert Exp $ BEGIN { # Default substitutions @@ -24,7 +24,7 @@ BEGIN { if (ARGC > 1) { while (getline override < ARGV[1]) { split(override, ov) - values[ov[0] ""]=ov[1] "" + values[ov[1] ""]=ov[2] "" } ARGC-- } |