diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2012-04-27 12:52:58 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2012-04-27 12:52:58 +0000 |
commit | 643770946a49719167eb3b70c08ab275f19fc73f (patch) | |
tree | d349b880b72349aab2f997b7ffaeaad87440d118 /usr.sbin/pkg_add/OpenBSD/Temp.pm | |
parent | 4f4f417aea9ca14a7d538f17a739b0f9e33f251c (diff) |
use our light-weight OpenBSD::MkTemp, which is safer, more accurate,
and doesn't pull a shitload of other modules with it.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Temp.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Temp.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Temp.pm b/usr.sbin/pkg_add/OpenBSD/Temp.pm index 58699814234..e7892f7c1b6 100644 --- a/usr.sbin/pkg_add/OpenBSD/Temp.pm +++ b/usr.sbin/pkg_add/OpenBSD/Temp.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Temp.pm,v 1.23 2011/03/07 09:26:47 espie Exp $ +# $OpenBSD: Temp.pm,v 1.24 2012/04/27 12:52:57 espie Exp $ # # Copyright (c) 2003-2005 Marc Espie <espie@openbsd.org> # @@ -20,7 +20,7 @@ use warnings; package OpenBSD::Temp; -use File::Temp; +use OpenBSD::MkTemp; use OpenBSD::Paths; use OpenBSD::Error; @@ -94,7 +94,7 @@ sub permanent_file if (defined $dir) { $template = "$dir/$template"; } - return File::Temp::mkstemp($template); + return OpenBSD::MkTemp::mkstemp($template); } sub permanent_dir @@ -104,7 +104,7 @@ sub permanent_dir if (defined $dir) { $template = "$dir/$template"; } - return File::Temp::mkdtemp($template); + return OpenBSD::MkTemp::mkdtemp($template); } 1; |