summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2011-07-20 00:39:16 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2011-07-20 00:39:16 +0000
commitc21ee47ff8829c6283463e779c9d1d1a10377b7f (patch)
tree8df5739a3d44107851c1d084cbe617e00bae9a0f /libexec
parent1c321a0ed4dc0d5f4112c7204f98bb9becc9d1fc (diff)
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.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/security/security3
1 files changed, 2 insertions, 1 deletions
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 <schwarze@openbsd.org>
# Copyright (c) 2011 Andrew Fresh <andrew@afresh1.com>
@@ -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;