From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6482d0ae6dcb1b4c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-27 15:00:09 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!ps01-chi1!news.webusenet.com!cyclone1.gnilink.net!wn1feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc53.POSTED!not-for-mail Message-ID: <3D94D418.5010604@attbi.com> From: Mark Biggar User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: if file exist References: <3d9245da.259420486@news.cis.dfn.de> <3D933A6B.5000105@cogeco.ca> <8db3d6c8.0209270247.5bf07ae5@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 12.235.91.30 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc53 1033163993 12.235.91.30 (Fri, 27 Sep 2002 21:59:53 GMT) NNTP-Posting-Date: Fri, 27 Sep 2002 21:59:53 GMT Organization: AT&T Broadband Date: Fri, 27 Sep 2002 21:59:53 GMT Xref: archiver1.google.com comp.lang.ada:29392 Date: 2002-09-27T21:59:53+00:00 List-Id: steve_H wrote: > Robert A Duff wrote in message news:... >>I don't agree that "a general solution is not possible". >>A File_Exists return Boolean function makes perfect sense. >>Of course it returns False if the file is invisible to the >>current process (because it "exists" in an inaccessible directory). >>To *this* process, that file does not exist. > But the above is not logical. If your function return FALSE, then one > does not know if this means the file actually does not exist, or that > the function was not able to determine if it exist or not becuase of > permission issues. The user might want to know this. No, from a computer security point of view, this is exactly what is wanted. A user should see absolutely no difference between "file does not exist" and "you don't have permission to see the file". Otherwise, you have introduced a covert information channel. -- Mark Biggar mark.a.biggar@attbi.com