diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2010-12-02 20:41:14 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2010-12-02 20:41:14 +0000 |
commit | f339feb60237a89432a5f66fc164e6c6c505602c (patch) | |
tree | d823a3f4d76ed9c00b4922a56bfa338feccdf932 /etc | |
parent | 6c8023934379c3645bc9ad436add672ce4d88611 (diff) |
The awk's split() starts numbering array indices at 1 not 0.
Diffstat (limited to 'etc')
-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-- } |