diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-06-15 08:53:56 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-06-15 08:53:56 +0000 |
commit | 7e569d6dd24752e7b851f29f19c11d14bf358ccb (patch) | |
tree | 8f5486176720f8e86dd64e7805da70db6df574b2 /usr.sbin | |
parent | 6adf3f69f1539861a91d89178a85a4e4f857b534 (diff) |
handle lost+found
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PkgCheck.pm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm b/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm index 3d80f4757c0..67d33b9282b 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm @@ -1,7 +1,7 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: PkgCheck.pm,v 1.16 2010/06/15 08:45:15 espie Exp $ +# $OpenBSD: PkgCheck.pm,v 1.17 2010/06/15 08:53:55 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org> # @@ -568,6 +568,13 @@ sub localbase_check find(sub { $state->progress->working(1024); if (-d $_) { + if ($File::Find::name eq + OpenBSD::Paths->localbase."/lost+found") { + $state->say("fsck(8) info found: #1", + $File::Find::name); + $File::Find::prune = 1; + return; + } return if defined $state->{known}{$File::Find::name}; if (-l $_) { return if $state->{known}{$File::Find::dir}{$_}; |