*BSD News Article 14539


Return to BSD News archive

Newsgroups: comp.os.386bsd.development
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!menudo.uh.edu!uuneo!sugar!peter
From: peter@NeoSoft.com (Peter da Silva)
Subject: Re: File Truncation Philosophy
Organization: NeoSoft Communications Services -- (713) 684-5900
Date: Tue, 13 Apr 1993 23:34:10 GMT
Message-ID: <C5G44z.8A5@sugar.neosoft.com>
References: <1993Apr8.025858.22137@uvm.edu> <1993Apr11.035322.19610@fcom.cc.utah.edu> <C5FJx6.o5w@ns1.nodak.edu>
Lines: 11

In article <C5FJx6.o5w@ns1.nodak.edu> tinguely@plains.NoDak.edu (Mark Tinguely) writes:
> the dumb approach.
> 	Once the file starts executing, fail writes to the file.

Better: if the file is open for writing, fail the exec. The file is probably
in an inconsistent state anyway, and it doesn't make sense to trust it.
-- 
Peter da Silva.  <peter@sugar.neosoft.com>.
 `-_-'   Oletko halannut suttasi tänään?
  'U`    
Tarjoilija, tämä ateria elää vielä.