summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2010-07-26 23:27:29 +0000
committerMarc Espie <espie@cvs.openbsd.org>2010-07-26 23:27:29 +0000
commit5e2aaed9a053ab4a5cb180339e3a692657f39edd (patch)
tree31cb25d796071b424a734b5f80735cbf3bc3a93e /usr.sbin
parentfe67829fd0b0628f34bb505066ae5b9b57ce69f0 (diff)
typo in message
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/State.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/State.pm b/usr.sbin/pkg_add/OpenBSD/State.pm
index a0fa40164d0..2413f81d1c7 100644
--- a/usr.sbin/pkg_add/OpenBSD/State.pm
+++ b/usr.sbin/pkg_add/OpenBSD/State.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: State.pm,v 1.15 2010/07/12 09:31:52 espie Exp $
+# $OpenBSD: State.pm,v 1.16 2010/07/26 23:27:28 espie Exp $
#
# Copyright (c) 2007-2010 Marc Espie <espie@openbsd.org>
#
@@ -87,7 +87,7 @@ sub istrue
{
my ($self, $k) = @_;
my $v = $self->value($k);
- if (defined $v && $v =~ /^(?:1|yes|y|on|true|t)$/) {
+ if (defined $v && $v =~ /^yes$/i) {
return 1;
} else {
return 0;
@@ -431,7 +431,7 @@ sub unlink
my $r = unlink @_;
if ($r != @_) {
$self->say("rm #1 failed: removed only #2 targets, #3",
- join(' ', @_), $r, $1);
+ join(' ', @_), $r, $!);
} elsif ($verbose) {
$self->say("rm #1", join(' ', @_));
}