home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Mint / Editors / mntemcsb.zoo / emacs-18.57 / patches next >
Text File  |  1992-06-04  |  1KB  |  45 lines

  1. diff -c orig/fileio.c src/fileio.c
  2. *** orig/fileio.c    Mon Jun  1 21:34:18 1992
  3. --- src/fileio.c    Mon Jun  1 21:46:34 1992
  4. ***************
  5. *** 2104,2110 ****
  6. --- 2104,2117 ----
  7.       {
  8.         /* If the file doesn't exist now and didn't exist before,
  9.        we say that it isn't modified, provided the error is a tame one.  */
  10. + /**
  11. +  **  (jjk++)  ### FIX THIS: MiNT lib PL 20 doesn't have ENOTDIR
  12. +  **/
  13. + #ifdef atarist
  14. +       if (errno == ENOENT || errno == EACCES)
  15. + #else
  16.         if (errno == ENOENT || errno == EACCES || errno == ENOTDIR)
  17. + #endif
  18.       st.st_mtime = -1;
  19.         else
  20.       st.st_mtime = 0;
  21. ***************
  22. *** 2360,2367 ****
  23.    ** (sjk)++
  24.    **/
  25.   #ifdef atarist
  26. !   _dos2unx(homedir,unxdir);
  27. !   homedir = unxdir;
  28.   #endif
  29.   
  30.     if (homedir != 0
  31. --- 2367,2379 ----
  32.    ** (sjk)++
  33.    **/
  34.   #ifdef atarist
  35. !   if (!homedir)
  36. !     homedir = "\001";    /* no file name should start with this */
  37. !   else
  38. !     {
  39. !       _dos2unx(homedir,unxdir);
  40. !       homedir = unxdir;
  41. !     }
  42.   #endif
  43.   
  44.     if (homedir != 0
  45.