Date: Tue, 8 Dec 1998 09:52:42 +0900 (JST) From: sawada@zoo.ncl.omron.co.jp To: FreeBSD-gnats-submit@FreeBSD.ORG Cc: sawada@zoo.ncl.omron.co.jp Subject: ports/9002: ports/net/mirror reuses obsolete temporal db file. Message-ID: <199812080052.JAA26923@walsh.zoo.ncl.omron.co.jp>
next in thread | raw e-mail | index | archive | help
>Number: 9002 >Category: ports >Synopsis: mirror reuses obsolete temporary db file >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 7 17:00:01 PST 1998 >Last-Modified: >Originator: Akira Sawada >Organization: OMRON Corporation >Release: FreeBSD 2.2.6-RELEASE i386 >Environment: All OS which uses the new Berkeley DB library. >Description: mirror software (ports/net/mirror) creates some temporary files like /tmp/local_map.26767.db or /tmp/remote_map.26767.db where the use_files option is on. If we mirror more than one packages in a single mirror process, mirror reuses the db files without clearing the obsolete data. Because mirror assumes that DB file name which is created by dbopen function of perl must be one of "*.pag", "*.dir", and "*.gdbm". >How-To-Repeat: - use_files flag is on - mirror more than one packages in a signle mirror process >Fix: --- mirror.pl.orig Tue Dec 8 09:35:39 1998 +++ mirror.pl Tue Dec 8 09:36:01 1998 @@ -3508,6 +3508,7 @@ unlink "$file.pag" if -e "$file.pag"; unlink "$file.dir" if -e "$file.dir"; unlink "$file.gdbm" if -e "$file.gdbm"; + unlink "$file.db" if -e "$file.db"; unlink "$file" if -e "$file"; } >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812080052.JAA26923>