From f339feb60237a89432a5f66fc164e6c6c505602c Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 2 Dec 2010 20:41:14 +0000 Subject: The awk's split() starts numbering array indices at 1 not 0. --- etc/mklogin.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc') 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-- } -- cgit v1.2.3