From owner-freebsd-security Sat Jun 26 23: 7:34 1999 Delivered-To: freebsd-security@freebsd.org Received: from obie.softweyr.com (unknown [204.68.178.33]) by hub.freebsd.org (Postfix) with ESMTP id 61A1D14EE0 for ; Sat, 26 Jun 1999 23:07:30 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from softweyr.com (homer.softweyr.com [204.68.178.39]) by obie.softweyr.com (8.8.8/8.8.8) with ESMTP id AAA20675; Sun, 27 Jun 1999 00:07:19 -0600 (MDT) (envelope-from wes@softweyr.com) Message-ID: <3775BF96.7C5E11BD@softweyr.com> Date: Sun, 27 Jun 1999 00:07:18 -0600 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 3.1-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Greg Black Cc: cjclark@home.com, FreeBSD Security Subject: Re: Secure Deletion References: <199906250212.WAA07810@cc942873-a.ewndsr1.nj.home.com> <3773F67A.CC9B6215@softweyr.com> <19990626213426.7899.qmail@alice.gba.oz.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Greg Black wrote: > > Given that there is a bunch of error conditions that are checked > for and which may cause the program to abort, surely making it > report success on exit, regardless of what actually happened, is > a Bad Thing? > > It would be trivial to make obliterate() return an int (e.g., 1 > for an error and 0 for success). This would then give us a > main() like this (with a refinement to process the arguments in > the order given rather than backwards, because I don't like to > surprise people): Yes, that would be a good thing to do. Whaddya expect for a program written while editing a mail message? ;^) You should've actually fixed the program and added yourself into the comments somewhere. Maybe I'll do it tomorrow. Thanks for the tips! -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://www.softweyr.com/~softweyr wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message