Jan Minar wrote:

> Hi, Bram!  Hi everybody!
> 
> Today, I have something that isn't a real vulnerability, but I have
> fixed it anyway.  The vimtutor (vimtutor.bat on Windows, vimtutor.com
> on VMS) command creates a temporary copy of the Vim Tutorial text
> file.  This is done in rather complicated way.  I have simplified the
> process by using the built-in tempname() function to find the
> temporary file name.  I took the liberty to use a more secure syntax
> even where it is not necessary, and to make some other small changes.
> 
> I have tested the vimtutor script; vimtutor.bat should work too; I am
> not so sure about the VMS vimtutor.com.
> 
> Please find the patch attached.

I'm missing the part where tutor.vim sets the temp file name.  When
tutor.vim does this I suppose all references to $TUTORCOPY can be
removed, I don't understand why you keep it and make it empty.

-- 
GALAHAD:   Camelot ...
LAUNCELOT: Camelot ...
GAWAIN:    It's only a model.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- 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    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui