home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / unix / archive / emx / patches / patch02 < prev    next >
Encoding:
Text File  |  1993-01-19  |  2.0 KB  |  72 lines

  1. Subject: emx 0.8f patch #2: _dt_read() bug under DOS
  2.  
  3.  
  4. This patch fixes two problems with _dt_read() under DOS.  It is to be
  5. applied in \emx\lib\misc.  Then, you should recompile libc.a (see
  6. build.doc).  As the bug isn't relevant under OS/2, you don't have to
  7. rebuild emxlibc.dll.
  8.  
  9. I seem to have missed running dttest under DOS -- without these fixes,
  10. _dt_read() is unusable under DOS.  Sorry.
  11.  
  12. diff -c 1/dtread.c ./dtread.c
  13. *** 1/dtread.c    Thu Jan 07 17:20:48 1993
  14. --- ./dtread.c    Thu Jan 07 17:22:40 1993
  15. ***************
  16. *** 119,125 ****
  17.       return (-1);
  18.     if (dp->dir_pass)
  19.       {
  20. !       strcpy (dp->path + path_len, "*");
  21.         r = __findfirst (dp->path, A_DIR|A_HIDDEN|A_SYSTEM, &dp->find);
  22.         while (r == 0)
  23.           {
  24. --- 119,125 ----
  25.       return (-1);
  26.     if (dp->dir_pass)
  27.       {
  28. !       strcpy (dp->path + path_len, "*.*");
  29.         r = __findfirst (dp->path, A_DIR|A_HIDDEN|A_SYSTEM, &dp->find);
  30.         while (r == 0)
  31.           {
  32. ***************
  33. *** 164,170 ****
  34.     data.mask = mask;
  35.     data.flags = flags;
  36.     data.dir_pass = 1;
  37. !   if ((strcmp (mask, "*") == 0 || strcmp (mask, "*.*") == 0))
  38.       data.dir_pass = 0;
  39.     data.attr = A_HIDDEN | A_SYSTEM;
  40.     if (!data.dir_pass)
  41. --- 164,171 ----
  42.     data.mask = mask;
  43.     data.flags = flags;
  44.     data.dir_pass = 1;
  45. !   if (strcmp (mask, "*.*") == 0
  46. !       || (_osmode == OS2_MODE && strcmp (mask, "*") == 0))
  47.       data.dir_pass = 0;
  48.     data.attr = A_HIDDEN | A_SYSTEM;
  49.     if (!data.dir_pass)
  50. diff -c 1/dtsplit.c ./dtsplit.c
  51. *** 1/dtsplit.c    Thu Jan 07 17:32:26 1993
  52. --- ./dtsplit.c    Thu Jan 07 17:32:26 1993
  53. ***************
  54. *** 35,41 ****
  55.         return (-1);
  56.       }
  57.     strcpy (path_buf + 2, src);
  58. !   strcpy (mask_buf, "*");
  59.     old_dir[0] = drive;
  60.     old_dir[1] = ':';
  61.     if (_getcwd1 (old_dir+2, drive) != 0)
  62. --- 35,41 ----
  63.         return (-1);
  64.       }
  65.     strcpy (path_buf + 2, src);
  66. !   strcpy (mask_buf, "*.*");
  67.     old_dir[0] = drive;
  68.     old_dir[1] = ':';
  69.     if (_getcwd1 (old_dir+2, drive) != 0)
  70.  
  71. Eberhard Mattes (mattes@azu.informatik.uni-stuttgart.de)
  72.