summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjasper <jasper@openbsd.org>2013-07-08 08:49:57 +0000
committerjasper <jasper@openbsd.org>2013-07-08 08:49:57 +0000
commitf05e84597da00caebd81aa124486f652f7f53c58 (patch)
tree90d7fce674dfc90de7859495bbc5990e39e5a9d2
parentadd DRM_IOCTL_MODE_CURSOR2 definition from libdrm 2.4.46 (diff)
downloadwireguard-openbsd-f05e84597da00caebd81aa124486f652f7f53c58.tar.xz
wireguard-openbsd-f05e84597da00caebd81aa124486f652f7f53c58.zip
Swap the program name and it's exit code so the output makes sense again.
ok espie@
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Vstat.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Vstat.pm b/usr.sbin/pkg_add/OpenBSD/Vstat.pm
index 2aa42d37576..552dc354979 100644
--- a/usr.sbin/pkg_add/OpenBSD/Vstat.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Vstat.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Vstat.pm,v 1.66 2013/04/16 09:33:20 espie Exp $
+# $OpenBSD: Vstat.pm,v 1.67 2013/07/08 08:49:57 jasper Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -265,9 +265,9 @@ sub run
}
if (!close($cmd)) {
if ($!) {
- $state->errsay("Error running #1: #2", join(' ', @_), $!);
+ $state->errsay("Error running #1: #2", $!, join(' ', @_));
} else {
- $state->errsay("Exit status #1 from #2", join(' ', @_), $?);
+ $state->errsay("Exit status #1 from #2", $?, join(' ', @_));
}
}
}