]> git.pld-linux.org Git - packages/vim.git/blame - 7.2.429
- new
[packages/vim.git] / 7.2.429
CommitLineData
e7d66cb1
AM
1To: vim-dev@vim.org
2Subject: Patch 7.2.429
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.2.429
11Problem: A file that exists but access is denied may result in a "new file"
12 message. E.g. when its directory is unreadable.
13Solution: Specifically check for ENOENT to decide a file doesn't exist.
14 (partly by James Vega)
15Files: src/fileio.c
16
17
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
20***************
21*** 595,601 ****
22 #endif
23 if (newfile)
24 {
25! if (perm < 0)
26 {
27 /*
28 * Set the 'new-file' flag, so that when the file has
29--- 595,605 ----
30 #endif
31 if (newfile)
32 {
33! if (perm < 0
34! #ifdef ENOENT
35! && errno == ENOENT
36! #endif
37! )
38 {
39 /*
40 * Set the 'new-file' flag, so that when the file has
41***************
42*** 664,669 ****
43--- 668,676 ----
44 # ifdef EFBIG
45 (errno == EFBIG) ? _("[File too big]") :
46 # endif
47+ # ifdef EOVERFLOW
48+ (errno == EOVERFLOW) ? _("[File too big]") :
49+ # endif
50 _("[Permission Denied]")), 0);
51 curbuf->b_p_ro = TRUE; /* must use "w!" now */
52 }
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
55***************
56*** 683,684 ****
57--- 683,686 ----
58 { /* Add new patch number below this line */
59+ /**/
60+ 429,
61 /**/
62
63--
64Those who live by the sword get shot by those who don't.
65
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 ///
This page took 0.086778 seconds and 4 git commands to generate.