]> git.pld-linux.org Git - packages/vim.git/blame - 6.2.445
- remove missing .po files
[packages/vim.git] / 6.2.445
CommitLineData
14b40f53
AG
1To: vim-dev@vim.org
2Subject: Patch 6.2.445
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 6.2.445
11Problem: Copying vimtutor to /tmp/something is not secure, a symlink may
12 cause trouble.
13Solution: Create a directory and create the file in it. Use "umask" to
14 create the directory with mode 700. (Stefan Nordhausen)
15Files: src/vimtutor
16
17
18*** ../vim-6.2.444/src/vimtutor Wed Mar 13 10:04:11 2002
19--- src/vimtutor Sun Apr 4 16:20:16 2004
20***************
21*** 10,22 ****
22 xx=$1
23 export xx
24
25! # Use Vim to copy the tutor, it knows the value of $VIMRUNTIME
26 tmp="${TMPDIR-/tmp}"
27! TUTORCOPY=`mktemp $tmp/tutorXXXXXX || tempfile -p tutor || echo $tmp/tutor$$`
28 export TUTORCOPY
29
30 # remove the copy of the tutor on exit
31! trap "rm -f $TUTORCOPY" 0 1 2 3 9 11 13 15
32
33 # Vim could be called "vim" or "vi". Also check for "vim6", for people who
34 # have Vim 5.x installed as "vim" and Vim 6.0 as "vim6".
35--- 10,43 ----
36 xx=$1
37 export xx
38
39! # We need a temp file for the copy. First try using a standard command.
40 tmp="${TMPDIR-/tmp}"
41! TUTORCOPY=`mktemp $tmp/tutorXXXXXX || tempfile -p tutor || echo none`
42!
43! # If the standard commands failed then create a directory to put the copy in.
44! # That is a secure way to make a temp file.
45! if test "$TUTORCOPY" = none; then
46! tmpdir=$tmp/vimtutor$$
47! OLD_UMASK=`umask`
48! umask 077
49! getout=no
50! mkdir $tmpdir || getout=yes
51! umask $OLD_UMASK
52! if test $getout = yes; then
53! echo "Could not create directory for tutor copy, exiting."
54! exit 1
55! fi
56! TUTORCOPY=$tmpdir/tutorcopy
57! touch $TUTORCOPY
58! TODELETE=$tmpdir
59! else
60! TODELETE=$TUTORCOPY
61! fi
62!
63 export TUTORCOPY
64
65 # remove the copy of the tutor on exit
66! trap "rm -rf $TODELETE" 0 1 2 3 9 11 13 15
67
68 # Vim could be called "vim" or "vi". Also check for "vim6", for people who
69 # have Vim 5.x installed as "vim" and Vim 6.0 as "vim6".
70***************
71*** 32,37 ****
72--- 53,59 ----
73 fi
74 fi
75
76+ # Use Vim to copy the tutor, it knows the value of $VIMRUNTIME
77 # The script tutor.vim tells Vim which file to copy
78 $VIM -u NONE -c 'so $VIMRUNTIME/tutor/tutor.vim'
79
80*** ../vim-6.2.444/src/version.c Sun Apr 4 15:39:18 2004
81--- src/version.c Sun Apr 4 16:18:21 2004
82***************
83*** 639,640 ****
84--- 639,642 ----
85 { /* Add new patch number below this line */
86+ /**/
87+ 445,
88 /**/
89
90--
91hundred-and-one symptoms of being an internet addict:
92266. You hear most of your jokes via e-mail instead of in person.
93
94 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
95/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
96\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
97 \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
This page took 0.070113 seconds and 4 git commands to generate.