diff options
author | Tim van der Molen <tim@cvs.openbsd.org> | 2018-03-06 20:56:37 +0000 |
---|---|---|
committer | Tim van der Molen <tim@cvs.openbsd.org> | 2018-03-06 20:56:37 +0000 |
commit | 9a8f7b3dd87f2c34a24e399571c736f88059ec36 (patch) | |
tree | 5fac441c519661284ace57eb2d560e2621f84c5b /sbin | |
parent | ae0065e38ff681a1bfcba7ba30652bef3dcff4a5 (diff) |
Fix a small mistake from r1.229 causing sysctl(8) to print "newval -> newval"
instead of "oldval -> newval" when changing a string variable.
OK florian@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/sysctl/sysctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index 47f863962df..c27c1ae22a7 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.230 2018/02/16 07:27:07 jmc Exp $ */ +/* $OpenBSD: sysctl.c,v 1.231 2018/03/06 20:56:36 tim Exp $ */ /* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */ /* @@ -1030,7 +1030,7 @@ parse(char *string, int flags) (unsigned char)buf[i]); } } else - (void)printf("%s", cp); + (void)printf("%s", buf); (void)printf(" -> "); } |