diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2014-01-23 21:05:27 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2014-01-23 21:05:27 +0000 |
commit | ede7d4df88910573f291a98fe8069c85f773f5bb (patch) | |
tree | 932118fdae5d5bc6d0668353067f19afa5defa55 /usr.sbin | |
parent | 2d4f03453849d60da01265b56727b7e406160f71 (diff) |
oops, pkg_sign is unhappy without -o.
Minimal fix, in order not to create too much conflict with pending work...
(problem noticed by naddy@)
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PkgSign.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgSign.pm b/usr.sbin/pkg_add/OpenBSD/PkgSign.pm index 6490b063680..726f3bd1799 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgSign.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgSign.pm @@ -1,6 +1,6 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: PkgSign.pm,v 1.3 2014/01/23 12:32:40 espie Exp $ +# $OpenBSD: PkgSign.pm,v 1.4 2014/01/23 21:05:26 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org> # @@ -45,6 +45,7 @@ sub handle_options if (!defined $state->{signer}) { $state->usage("Can't invoke command without valid signing parameters"); } + $state->{output_dir} //= "."; if (!-d $state->{output_dir}) { require File::Path; File::Path::make_path($state->{output_dir}) |