delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/03/23/09:20:36

Message-Id: <m0yH81y-000S2lC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: vheyndri AT rug DOT ac DOT be, djgpp-workers AT delorie DOT com, eliz AT is DOT elta DOT co DOT il
Date: Mon, 23 Mar 1998 11:19:44 +0000
MIME-Version: 1.0
Subject: Re: DOS sharing behaviour, a guide
In-reply-to: <35162559.A02@rug.ac.be>

 Vik Heyndrickx <Vik DOT Heyndrickx AT rug DOT ac DOT be> wrote:
> Eli Zaretskii wrote:
> > 
> > On Thu, 19 Mar 1998, Vik Heyndrickx wrote:
> > 
> > >       writing
> > >               open it for writing and specify DENYALL
> > >         r/w
> > >               open it for r/w and specify DENYALL
> > 
> > Doesn't this prevent other programs from opening the file in read-only
> > mode?
> 
> During the weekend, I reconsidered this already and my new opinion is:
> 
> 	writing
> 		open it for writing and specify DENYWRITE
> 	r/w
> 		open it for r/w and specify DENYWRITE
> 
> Like you mentioned, the previous restrictions were too strickt, as a
> second prg CAN control not to open a file for reading when it is already
> written to. Specifying DENYNONE on the other hand, will put data too
> much at stake.
> But: when a file is written to, it is better not to be able to open it
> for reading, as this also can compromise data.

My editor is working currently with the patch I sent to the group and setting 
DENYWRITE as default, that's what I consider the better choice, so I agree with 
Vik, but the same again: It can break old programs.

SET
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
CQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019