To: vim-dev@vim.org Subject: Patch 5.7.026 (extra) Fcc: outbox From: Bram Moolenaar ------------ Patch 5.7.026 (extra) Problem: Creating a temp file has a race condition. Solution: Create a private directory to write the temp files in. This is the extra part of patch 5.7.025. Files: src/os_msdos.h *** ../vim-5.7.25/src/os_msdos.h Tue May 11 17:40:31 1999 --- src/os_msdos.h Thu Mar 8 14:39:42 2001 *************** *** 112,115 **** --- 112,122 ---- # define mch_rename(src, dst) rename(src, dst) #endif + #ifdef DJGPP + # define vim_mkdir(x, y) mkdir((char *)(x), y) + #else + # define vim_mkdir(x, y) mkdir((char *)(x)) + #endif + #define mch_rmdir(x) rmdir((char *)(x)) + #define mch_setenv(name, val, x) setenv(name, val, x) *** ../vim-5.7.25/src/version.c Mon Jan 29 21:37:18 2001 --- src/version.c Thu Mar 8 14:48:26 2001 *************** *** 439,440 **** --- 439,442 ---- { /* Add new patch number below this line */ + /**/ + 26, /**/ -- hundred-and-one symptoms of being an internet addict: 114. You are counting items, you go "0,1,2,3,4,5,6,7,8,9,A,B,C,D...". /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ ((( Creator of Vim - http://www.vim.org -- ftp://ftp.vim.org/pub/vim ))) \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///