Next Classic Unix Security Problems 17

Race conditions

        if ((fd = open(Y, O_RDONLY)) < 0)
          if (errno == EPERM) 
            perror(Y);

Next Copyright © 2005 M. J. Dominus