summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2013-01-18 13:22:55 +0000
committerMarc Espie <espie@cvs.openbsd.org>2013-01-18 13:22:55 +0000
commit580ce525bce1d9d66f9b358ea01a9a9877cec4ef (patch)
tree11fbcd4e883cb7378ec3be314ec909700f56bc75 /usr.sbin/pkg_add
parent42e981c248c92d00c3e6d4111d48a82e0ad560af (diff)
move lock down: we don't really need to lock to match the directory
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgInfo.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm b/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm
index fa223e6c42d..d5aa1982f72 100644
--- a/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm
@@ -1,6 +1,6 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: PkgInfo.pm,v 1.25 2011/11/24 19:47:11 espie Exp $
+# $OpenBSD: PkgInfo.pm,v 1.26 2013/01/18 13:22:54 espie Exp $
#
# Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org>
#
@@ -464,8 +464,8 @@ sub parse_and_run
sub {
my $pat = shift;
my @list;
- $state->lock;
if ($pat =~ m/\//o) {
+ $state->lock;
@list = find_by_path($pat);
push(@ARGV, @list);
} else {