summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2004-08-06 14:09:36 +0000
committerMarc Espie <espie@cvs.openbsd.org>2004-08-06 14:09:36 +0000
commitec523b13122cb96aad7695a99e8c6d3c017d27a0 (patch)
tree90b70043a77c3095802a87050043428c5c8513d2 /libexec
parent78c3920773b07917fe78a08cd62c9dc5e0569719 (diff)
creeping chdir. Not used at all these days, but would bug other clients,
such as pkg_ad....
Diffstat (limited to 'libexec')
-rw-r--r--libexec/makewhatis/OpenBSD/Makewhatis.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/libexec/makewhatis/OpenBSD/Makewhatis.pm b/libexec/makewhatis/OpenBSD/Makewhatis.pm
index efe47e7c020..b0743ae0157 100644
--- a/libexec/makewhatis/OpenBSD/Makewhatis.pm
+++ b/libexec/makewhatis/OpenBSD/Makewhatis.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Makewhatis.pm,v 1.1 2004/08/06 12:05:08 espie Exp $
+# $OpenBSD: Makewhatis.pm,v 1.2 2004/08/06 14:09:35 espie Exp $
# Copyright (c) 2000-2004 Marc Espie <espie@openbsd.org>
#
# Permission to use, copy, modify, and distribute this software for any
@@ -104,8 +104,6 @@ sub merge
unless (-d $mandir) {
die "$0: $mandir: not a directory"
}
- chdir $mandir;
-
my $whatis = "$mandir/whatis.db";
open(my $old, '<', $whatis) or
die "$0 $whatis to merge with";
@@ -126,8 +124,6 @@ sub remove
unless (-d $mandir) {
die "$0: $mandir: not a directory"
}
- chdir $mandir;
-
my $whatis = "$mandir/whatis.db";
open(my $old, '<', $whatis) or
die "$0 $whatis to merge with";