home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.0.118 < prev    next >
Encoding:
Internet Message Format  |  2002-01-01  |  2.2 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.118
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.0.118
  11. Problem:    When $TMPDIR is a relative path, the temp directory is missing a
  12.         trailing slash and isn't deleted when Vim exits. (Peter Holm)
  13. Solution:   Add the slash after expanding the directory to an absolute path.
  14. Files:        src/fileio.c
  15.  
  16.  
  17. *** ../vim60.117/src/fileio.c    Mon Nov  5 21:01:58 2001
  18. --- src/fileio.c    Wed Jan  2 17:03:40 2002
  19. ***************
  20. *** 5371,5386 ****
  21.   #endif
  22.               if (r == 0)
  23.               {
  24. !             /* Directory was created, use this name. */
  25.   # ifdef __EMX__
  26. !             if (vim_strchr(itmp, '/') != NULL)
  27. !                 STRCAT(itmp, "/");
  28. !             else
  29.   # endif
  30. !                 add_pathsep(itmp);
  31. !             /* Use the full path; When using the current directory
  32. !              * a ":cd" would confuse us. */
  33. !             vim_tempdir = FullName_save(itmp, FALSE);
  34.               break;
  35.               }
  36.   # ifdef EEXIST
  37. --- 5371,5396 ----
  38.   #endif
  39.               if (r == 0)
  40.               {
  41. !             char_u    *buf;
  42. !             /* Directory was created, use this name.
  43. !              * Expand to full path; When using the current
  44. !              * directory a ":cd" would confuse us. */
  45. !             buf = alloc((unsigned)MAXPATHL + 1);
  46. !             if (buf != NULL)
  47. !             {
  48. !                 if (vim_FullName(itmp, buf, MAXPATHL, FALSE)
  49. !                                       == FAIL)
  50. !                 STRCPY(buf, itmp);
  51.   # ifdef __EMX__
  52. !                 if (vim_strchr(buf, '/') != NULL)
  53. !                 STRCAT(buf, "/");
  54. !                 else
  55.   # endif
  56. !                 add_pathsep(buf);
  57. !                 vim_tempdir = vim_strsave(buf);
  58. !                 vim_free(buf);
  59. !             }
  60.               break;
  61.               }
  62.   # ifdef EEXIST
  63. *** ../vim60.117/src/version.c    Tue Jan  1 23:08:31 2002
  64. --- src/version.c    Wed Jan  2 17:07:07 2002
  65. ***************
  66. *** 608,609 ****
  67. --- 608,611 ----
  68.   {   /* Add new patch number below this line */
  69. + /**/
  70. +     118,
  71.   /**/
  72.  
  73. -- 
  74. "My particular problem is with registry entries, which seem to just accumulate
  75. like plastic coffee cups..."           -- Paul Moore
  76.  
  77.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  78. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  79.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  80.