summaryrefslogtreecommitdiffstats
path: root/libexec/security
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2011-07-20 00:39:15 +0000
committerschwarze <schwarze@openbsd.org>2011-07-20 00:39:15 +0000
commit6780a9a3b53146226726b03e057114df03334387 (patch)
tree7a286d012e10039770e9312f2a37d71744277019 /libexec/security
parentHandle F_DUPFD_CLOEXEC the same as we do F_DUPFD. (diff)
downloadwireguard-openbsd-6780a9a3b53146226726b03e057114df03334387.tar.xz
wireguard-openbsd-6780a9a3b53146226726b03e057114df03334387.zip
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/security')
-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;