bug-make
[Top][All Lists]
Advanced

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

[bug #63330] readdir() error in 4.4 on Solaris 8


From: Paul D. Smith
Subject: [bug #63330] readdir() error in 4.4 on Solaris 8
Date: Mon, 7 Nov 2022 10:48:43 -0500 (EST)

Follow-up Comment #1, bug #63330 (project make):

Hm.  Maybe on Solaris readdir() doesn't reset errno?  In src/dir.c you'll find
this code:


      ENULLLOOP (d, readdir (dir->dirstream));
      if (d == 0)
        {
          if (errno)
            pfatal_with_name ("INTERNAL: readdir");
          break;
        }


Try changing it to set errno first:


      errno = 0; /* add this line */
      ENULLLOOP (d, readdir (dir->dirstream));
      if (d == 0)
        {
          if (errno)
            pfatal_with_name ("INTERNAL: readdir");
          break;
        }



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63330>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]