• [^] # Re: Heuuu

    Posté par . En réponse au journal Launch And Forget. Évalué à 2.

    Moi j'ai :
    access(2)
    NOTES
    Warning: Using access() to check if a user is authorized to, for example, open a file before actually doing so using open(2) cre‐
    ates a security hole, because the user might exploit the short time interval between checking and opening the file to manipulate
    it. For this reason, the use of this system call should be avoided.


    et
    access(3P)
    EXAMPLES
    Testing for the Existence of a File
    The following example tests whether a file named myfile exists in the /tmp directory.