summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2013-03-21 09:37:37 +0000
committersthen <sthen@openbsd.org>2013-03-21 09:37:37 +0000
commitc2f2020cae633df11f1d7329fee384d8b8beab49 (patch)
treebc3897ae9e01b083415bf297754f79c8ced6c223
parent- remove two now-unused macros. (diff)
downloadwireguard-openbsd-c2f2020cae633df11f1d7329fee384d8b8beab49.tar.xz
wireguard-openbsd-c2f2020cae633df11f1d7329fee384d8b8beab49.zip
Correct the last change to untaint $fmt; it caused the final parameter of
the format string to be dropped, causing the year to be printed instead of the filename, as reported by ajacoutot. ok espie@
-rw-r--r--libexec/security/security6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/security/security b/libexec/security/security
index 85b8497f094..4515d837484 100644
--- a/libexec/security/security
+++ b/libexec/security/security
@@ -1,6 +1,6 @@
#!/usr/bin/perl -T
-# $OpenBSD: security,v 1.22 2013/03/19 22:14:30 sthen Exp $
+# $OpenBSD: security,v 1.23 2013/03/21 09:37:37 sthen Exp $
#
# Copyright (c) 2011, 2012 Ingo Schwarze <schwarze@openbsd.org>
# Copyright (c) 2011 Andrew Fresh <andrew@afresh1.com>
@@ -600,8 +600,8 @@ sub adjust_columns {
if (!$s[$_] || length $row->[$_] > $s[$_]);
}
}
- $s[-1] = '';
- my $fmt = join ' ', map { m/(\d+)/ && "%-$1s"} @s;
+ $s[-1] = '0';
+ my $fmt = join ' ', map { m/(\d+)/ && "%-$1s"} @s;
return map { sprintf $fmt, @$_ } @table;
}