summaryrefslogtreecommitdiffstats
path: root/source/ap/vim/patches/7.2.076
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2011-04-25 13:37:00 +0000
committer Eric Hameleers <alien@slackware.com>2018-05-31 22:45:18 +0200
commit75a4a592e5ccda30715f93563d741b83e0dcf39e (patch)
tree502f745607e77a2c4386ad38d818ddcafe81489c /source/ap/vim/patches/7.2.076
parentb76270bf9e6dd375e495fec92140a79a79415d27 (diff)
downloadcurrent-75a4a592e5ccda30715f93563d741b83e0dcf39e.tar.gz
current-75a4a592e5ccda30715f93563d741b83e0dcf39e.tar.xz
Slackware 13.37slackware-13.37
Mon Apr 25 13:37:00 UTC 2011 Slackware 13.37 x86_64 stable is released! Thanks to everyone who pitched in on this release: the Slackware team, the folks producing upstream code, and linuxquestions.org for providing a great forum for collaboration and testing. The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware project by picking up a copy from store.slackware.com. We're taking pre-orders now, and offer a discount if you sign up for a subscription. As always, thanks to the Slackware community for testing, suggestions, and feedback. :-) Have fun!
Diffstat (limited to 'source/ap/vim/patches/7.2.076')
-rw-r--r--source/ap/vim/patches/7.2.07686
1 files changed, 0 insertions, 86 deletions
diff --git a/source/ap/vim/patches/7.2.076 b/source/ap/vim/patches/7.2.076
deleted file mode 100644
index 5166bbab2..000000000
--- a/source/ap/vim/patches/7.2.076
+++ /dev/null
@@ -1,86 +0,0 @@
-To: vim-dev@vim.org
-Subject: Patch 7.2.076
-Fcc: outbox
-From: Bram Moolenaar <Bram@moolenaar.net>
-Mime-Version: 1.0
-Content-Type: text/plain; charset=ISO-8859-1
-Content-Transfer-Encoding: 8bit
-------------
-
-Patch 7.2.076
-Problem: rename(from, to) deletes the file if "from" and "to" are not equal
- but still refer to the same file. E.g., on a FAT32 filesystem
- under Unix.
-Solution: Go through another file name.
-Files: src/fileio.c
-
-
-*** ../vim-7.2.075/src/fileio.c Fri Nov 28 21:26:50 2008
---- src/fileio.c Tue Dec 30 16:04:44 2008
-***************
-*** 6119,6124 ****
---- 6119,6165 ----
- if (mch_stat((char *)from, &st) < 0)
- return -1;
-
-+ #ifdef UNIX
-+ {
-+ struct stat st_to;
-+ char tempname[MAXPATHL + 1];
-+
-+ /* It's possible for the source and destination to be the same file.
-+ * This happens when "from" and "to" differ in case and are on a FAT32
-+ * filesystem. In that case go through a temp file name. */
-+ if (mch_stat((char *)to, &st_to) >= 0
-+ && st.st_dev == st_to.st_dev
-+ && st.st_ino == st_to.st_ino)
-+ {
-+ /* Find a name that doesn't exist and is in the same directory.
-+ * Move "from" to "tempname" and then to "to". */
-+ if (STRLEN(from) >= MAXPATHL - 5)
-+ return -1;
-+ STRCPY(tempname, from);
-+ for (n = 123; n < 99999; ++n)
-+ {
-+ sprintf(gettail(tempname), "%d", n);
-+ if (mch_stat(tempname, &st_to) < 0)
-+ {
-+ if (mch_rename((char *)from, tempname) == 0)
-+ {
-+ if (mch_rename(tempname, (char *)to) == 0)
-+ return 0;
-+ /* Strange, the second step failed. Try moving the
-+ * file back and return failure. */
-+ mch_rename(tempname, (char *)from);
-+ return -1;
-+ }
-+ /* If it fails for one temp name it will most likely fail
-+ * for any temp name, give up. */
-+ return -1;
-+ }
-+ }
-+ return -1;
-+ }
-+ }
-+ #endif
-+
- /*
- * Delete the "to" file, this is required on some systems to make the
- * mch_rename() work, on other systems it makes sure that we don't have
-*** ../vim-7.2.075/src/version.c Wed Dec 24 14:24:41 2008
---- src/version.c Tue Dec 30 16:09:51 2008
-***************
-*** 678,679 ****
---- 678,681 ----
- { /* Add new patch number below this line */
-+ /**/
-+ 76,
- /**/
-
---
-FATAL ERROR! SYSTEM HALTED! - Press any key to continue doing nothing.
-
- /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
-/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
-\\\ download, build and distribute -- http://www.A-A-P.org ///
- \\\ help me help AIDS victims -- http://ICCF-Holland.org ///