delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/08/16/06:06:32

Message-ID: <399A66D1.3E34F6D1@softhome.net>
Date: Wed, 16 Aug 2000 12:02:57 +0200
From: Laurynas Biveinis <lauras AT softhome DOT net>
X-Mailer: Mozilla 4.74 [en] (Win98; U)
X-Accept-Language: lt,en
MIME-Version: 1.0
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
CC: djgpp-workers AT delorie DOT com
Subject: Re: Patch: open() adjustment for symlinks
References: <39998D7D DOT 70F85B9E AT softhome DOT net> <5137-Tue15Aug2000223737+0300-eliz AT is DOT elta DOT co DOT il> <399A58A0 DOT 473D5E04 AT softhome DOT net> <3405-Wed16Aug2000125028+0300-eliz AT is DOT elta DOT co DOT il>
Reply-To: djgpp-workers AT delorie DOT com

Eli Zaretskii wrote:
> I'm not sure I understand how readlink is going to call _open, but
> opening a file with SH_DENYNO as the default is not always a good
> idea.  Take a look at the table of sharing behavior in RBIL, under
> function 3Dh of Int 21: at least for SHARE.EXE it seems to say that,
> if the file is open by another program in compatibility mode, and you
> open it with SH_DENYNO, it fails if the file is not read-only
> (whatever that means), even if, like in readlink, you open the file
> for read-only access.

Yes, I can see all the mess in the table. I will make two-step open
in readlink() too. Thanks for clarifying.

Laurynas

- Raw text -


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