pmake-1.98-skipdots.patch 513 B

12345678910111213
  1. diff -urN pmake-2.0.orig/dir.c pmake-2.0/dir.c
  2. --- pmake-2.0.orig/dir.c 2005-02-08 09:26:28.932978574 -0500
  3. +++ pmake-2.0/dir.c 2005-02-08 09:36:18.208704201 -0500
  4. @@ -1528,6 +1528,8 @@
  5. Hash_InitTable (&p->files, -1);
  6. while ((dp = readdir (d)) != (struct dirent *) NULL) {
  7. + if (!strcmp(dp->d_name, ".") || !strcmp(dp->d_name, ".."))
  8. + continue;
  9. #if defined(sun) && defined(d_ino) /* d_ino is a sunos4 #define for d_fileno */
  10. /*
  11. * The sun directory library doesn't check for a 0 inode