From owner-freebsd-stable Mon Sep 6 9:57:42 1999 Delivered-To: freebsd-stable@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id CB89514CC6 for ; Mon, 6 Sep 1999 09:57:38 -0700 (PDT) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.1) with ESMTP id JAA23719; Mon, 6 Sep 1999 09:57:02 -0700 (PDT) (envelope-from jdp@polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.9.3/8.9.1) id JAA19929; Mon, 6 Sep 1999 09:57:02 -0700 (PDT) (envelope-from jdp@polstra.com) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3.0.3.32.19990906051926.01680cc0@207.227.119.2> Date: Mon, 06 Sep 1999 09:57:02 -0700 (PDT) Organization: Polstra & Co., Inc. From: John Polstra To: "Jeffrey J. Mountin" Subject: Re: buildword curiousities Cc: stable@FreeBSD.ORG Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jeffrey J. Mountin wrote: > >>It puts each one in the same directory where the real file will end >>up. Then it uses rename(2) to move it atomically into place after it >>has been checked for validity. There's some code that attempts to >>clean up a temp file if you kill the program in the middle. Usually >>it works. > > And how is the temp file named? Should be clean, but if it happens again > it would be nice to be able to search for them. The temp files all have names like "#cvs.cvsup*". > The size wasn't off, AFAICR, just a lot of odd character subs. The version > on the CD was OK. Points to hardware. Thought that CVSup went by the > version# and size. Yes, but unless the information from stat(2) differs -- namely, the timestamp and sometimes the size -- CVSup doesn't even look at the file. All bulk file update programs have to work that way, because it would be prohibitively slow to open and examine every file. > Learned quick that when you modify source that is CVSup'd, it a > GoodIdea to keep things elsewhere. Or learn about "refuse" files. I added a bunch of stuff to the CVSup FAQ about that recently. http://www.polstra.com/projects/freeware/CVSup/ John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "No matter how cynical I get, I just can't keep up." -- Nora Ephron To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message