From b079f5d16d1059d264b1d889572ed635d29aa50e Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Mon, 8 Jul 2019 10:59:31 +0000 Subject: check ::Temp creation --- usr.sbin/pkg_add/OpenBSD/PkgCreate.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm index a18779b530d..cc1197179c2 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm @@ -1,6 +1,6 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: PkgCreate.pm,v 1.155 2019/05/28 23:24:44 espie Exp $ +# $OpenBSD: PkgCreate.pm,v 1.156 2019/07/08 10:59:30 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie # @@ -635,7 +635,8 @@ sub format_source_page my $fullname = $self->cwd."/".$dest; my $d = dirname($fullname); $state->{mandir} //= OpenBSD::Temp::permanent_dir( - $ENV{TMPDIR} // '/tmp', "manpage"); + $ENV{TMPDIR} // '/tmp', "manpage") or + $state->fatal(OpenBSD::Temp->last_error); my $tempname = $state->{mandir}.$fullname; require File::Path; File::Path::make_path($state->{mandir}.$d); -- cgit v1.2.3