4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: A file that exists but access is denied may result in a "new file"
12 message. E.g. when its directory is unreadable.
13 Solution: Specifically check for ENOENT to decide a file doesn't exist.
14 (partly by James Vega)
18 *** ../vim-7.2.428/src/fileio.c 2010-03-02 12:47:58.000000000 +0100
19 --- src/fileio.c 2010-05-14 18:30:09.000000000 +0200
28 * Set the 'new-file' flag, so that when the file has
40 * Set the 'new-file' flag, so that when the file has
45 (errno == EFBIG) ? _("[File too big]") :
48 + (errno == EOVERFLOW) ? _("[File too big]") :
50 _("[Permission Denied]")), 0);
51 curbuf->b_p_ro = TRUE; /* must use "w!" now */
53 *** ../vim-7.2.428/src/version.c 2010-05-14 18:10:23.000000000 +0200
54 --- src/version.c 2010-05-14 18:55:11.000000000 +0200
58 { /* Add new patch number below this line */
64 Those who live by the sword get shot by those who don't.
66 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
67 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
68 \\\ download, build and distribute -- http://www.A-A-P.org ///
69 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///