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:09:44 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!iad-peer.news.verio.net!news.verio.net!newsfeed.cwix.com!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: if file exist Date: 27 Sep 2002 17:09:41 -0600 Organization: LJK Software Message-ID: References: <3d9245da.259420486@news.cis.dfn.de> <3D933A6B.5000105@cogeco.ca> <8db3d6c8.0209270247.5bf07ae5@posting.google.com> <3D94D418.5010604@attbi.com> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1033163011 26374 192.135.80.34 (27 Sep 2002 21:43:31 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Fri, 27 Sep 2002 21:43:31 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:29393 Date: 2002-09-27T17:09:41-06:00 List-Id: In article <3D94D418.5010604@attbi.com>, Mark Biggar writes: > steve_H wrote: >> 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. Beyond security, there are other possibilities like "this file is shelved and all the unshelving drives are currently busy". And as has been mentioned by others, "this file exists but someone else will delete it between now and when you try to open it" :-)