diff options
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Add.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Add.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Add.pm b/usr.sbin/pkg_add/OpenBSD/Add.pm index 783f1257453..1ff26b855a5 100644 --- a/usr.sbin/pkg_add/OpenBSD/Add.pm +++ b/usr.sbin/pkg_add/OpenBSD/Add.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Add.pm,v 1.181 2019/06/30 14:57:25 espie Exp $ +# $OpenBSD: Add.pm,v 1.182 2019/07/10 11:15:15 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org> # @@ -484,9 +484,10 @@ sub create_temp if (!defined $tempname) { if ($state->allow_nonroot($fullname)) { $state->errsay("Can't create temp file outside localbase for #1", $fullname); + $state->errsay(OpenBSD::Temp->last_error); return undef; } - $state->fatal("create temporary file in #1: #2", $d, $!); + $state->fatal(OpenBSD::Temp->last_error); } return ($fh, $tempname); } |