From 34efc00b4042f87181ec69432f8164115bae2208 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Sat, 5 Jun 2010 12:35:33 +0000 Subject: use lock_db(unshared), since we may tweak things --- usr.sbin/pkg_add/OpenBSD/PkgFsck.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin/pkg_add/OpenBSD') diff --git a/usr.sbin/pkg_add/OpenBSD/PkgFsck.pm b/usr.sbin/pkg_add/OpenBSD/PkgFsck.pm index 93d8f0eca89..53ed5f7e069 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgFsck.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgFsck.pm @@ -1,7 +1,7 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: PkgFsck.pm,v 1.1 2010/06/05 12:30:36 espie Exp $ +# $OpenBSD: PkgFsck.pm,v 1.2 2010/06/05 12:35:32 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie # @@ -311,6 +311,7 @@ sub parse_and_run $state->{interactive} = $state->opt('i'); $state->{force} = $state->opt('f'); $state->{quick} = $state->opt('q'); + lock_db(0) unless $state->{subst}->value('nolock'); $self->run($state); $state->log->dump; } -- cgit v1.2.3