Re: [Full-disclosure] Re: readdir_r considered harmful

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/6/05, Casper.Dik@xxxxxxx <Casper.Dik@xxxxxxx> wrote:> I don't see how that is relevant; the typical use of readdir() is as follows:>>         DIR *dirp = opendir(name);>>         while ((dent = readdir(dirp)) != NULL) {>                 ...>         }>>         closedir(dirp);>> Nothing other threads do with readdir() on different dirp's will influence> what "dent" points to.
The issue is multiple threads using the same DIR.

[Index of Archives]     [Linux Security]     [Netfilter]     [PHP]     [Yosemite News]     [Linux Kernel]

  Powered by Linux