summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2019-07-08 10:59:31 +0000
committerMarc Espie <espie@cvs.openbsd.org>2019-07-08 10:59:31 +0000
commitb079f5d16d1059d264b1d889572ed635d29aa50e (patch)
tree12006d22d669ed29c1480ecf65363202cffe7801
parent0fd4f84deedc770da0c781260daac6b280008181 (diff)
check ::Temp creation
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgCreate.pm5
1 files 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 <espie@openbsd.org>
#
@@ -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);