[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: work3 - searchpath
- From: Adrián Pérez <copylight@...>
- Date: Wed, 22 Dec 2004 12:08:27 +0100
El 19/12/2004, a las 12:31, David Burgess escribió:
would it be better to use access() to check for file readibility?
The function is also available under windows and I believe under
mac.
access() has security faults in lots of platforms, in fact even manpages
say things like «access() is a potential security hole and should never
be used»
(from the MacOS X manpages). If you want to do something similar use
stat()
or just stick with fopen(). stat() is available in Win32, too.
-ap
Attachment:
PGP.sig
Description: Mensaje firmado digitalmente