From owner-freebsd-audit Sat Dec 2 8:35:23 2000 Delivered-To: freebsd-audit@freebsd.org Received: from mailout05.sul.t-online.com (mailout05.sul.t-online.com [194.25.134.82]) by hub.freebsd.org (Postfix) with ESMTP id C3C4037B400 for ; Sat, 2 Dec 2000 08:35:18 -0800 (PST) Received: from fwd05.sul.t-online.com by mailout05.sul.t-online.com with smtp id 142FcK-0001TJ-07; Sat, 02 Dec 2000 17:34:28 +0100 Received: from neutron.cichlids.com (520050424122-0001@[62.225.195.29]) by fmrl05.sul.t-online.com with esmtp id 142FcG-1lW8fYC; Sat, 2 Dec 2000 17:34:24 +0100 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by neutron.cichlids.com (Postfix) with ESMTP id 244E7AB91; Sat, 2 Dec 2000 17:36:30 +0100 (CET) Received: by cichlids.cichlids.com (Postfix, from userid 1001) id 116E614A63; Sat, 2 Dec 2000 17:34:38 +0100 (CET) Date: Sat, 2 Dec 2000 17:34:37 +0100 To: =?iso-8859-1?Q?Joachim_Str=F6mbergson?= Cc: Kris Kennaway , audit@FreeBSD.ORG Subject: Re: Project for auditors Message-ID: <20001202173437.B33987@cichlids.cichlids.com> References: <20001124143336.A70550@citusc17.usc.edu> <3A2141A0.7BF149C4@ludd.luth.se> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <3A2141A0.7BF149C4@ludd.luth.se>; from watchman@ludd.luth.se on Sun, Nov 26, 2000 at 06:00:16PM +0100 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. From: alex@big.endian.de (Alexander Langer) X-Sender: 520050424122-0001@t-dialin.net Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thus spake Joachim Strömbergson (watchman@ludd.luth.se): > Also, in the quit.c the temp file is deleted by rm(tempname) on line > 448. Should I use unlink() instead? I don't know how the tmpfile is used, but what about unlinking it right after opening the file but keeping the fd open? If you then unlink again and it returns 0, you should re-create a tempfile and use the same procedure (because usually it shouldn't exist any more...) (Warning: Maybe I'm having a wrong understanding of the unlink stuff at the moment) Alex -- cat: /home/alex/.sig: No such file or directory To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message