From 6780a9a3b53146226726b03e057114df03334387 Mon Sep 17 00:00:00 2001 From: schwarze Date: Wed, 20 Jul 2011 00:39:15 +0000 Subject: In lists of setuid/setgid files and devices, do not pad the last column with trailing spaces; ugliness spotted by daniel dot c dot sinclair at gmail dot com, fix from Andrew Fresh. --- libexec/security/security | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libexec/security') diff --git a/libexec/security/security b/libexec/security/security index 4e0842082dd..df4411492e2 100644 --- a/libexec/security/security +++ b/libexec/security/security @@ -1,6 +1,6 @@ #!/usr/bin/perl -T -# $OpenBSD: security,v 1.15 2011/06/20 21:53:53 schwarze Exp $ +# $OpenBSD: security,v 1.16 2011/07/20 00:39:15 schwarze Exp $ # # Copyright (c) 2011 Ingo Schwarze # Copyright (c) 2011 Andrew Fresh @@ -594,6 +594,7 @@ sub adjust_columns { if (!$s[$_] || length $row->[$_] > $s[$_]); } } + $s[-1] = ''; my $fmt = join ' ', map "%-${_}s", @s; return map { sprintf $fmt, @$_ } @table; -- cgit v1.2.3-59-g8ed1b