|
Karsten Hopp |
b30674 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
b30674 |
Subject: Patch 7.0.052
|
|
Karsten Hopp |
b30674 |
Fcc: outbox
|
|
Karsten Hopp |
b30674 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
b30674 |
Mime-Version: 1.0
|
|
Karsten Hopp |
b30674 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
b30674 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
b30674 |
------------
|
|
Karsten Hopp |
b30674 |
|
|
Karsten Hopp |
b30674 |
Patch 7.0.052
|
|
Karsten Hopp |
b30674 |
Problem: The user may not be aware that the Vim server allows others more
|
|
Karsten Hopp |
b30674 |
functionality than desired.
|
|
Karsten Hopp |
b30674 |
Solution: When running Vim as root don't become a Vim server without an
|
|
Karsten Hopp |
b30674 |
explicit --servername argument.
|
|
Karsten Hopp |
b30674 |
Files: src/main.c
|
|
Karsten Hopp |
b30674 |
|
|
Karsten Hopp |
b30674 |
|
|
Karsten Hopp |
b30674 |
*** ../vim-7.0.051/src/main.c Mon Jun 19 10:56:20 2006
|
|
Karsten Hopp |
b30674 |
--- src/main.c Tue Aug 8 11:02:44 2006
|
|
Karsten Hopp |
b30674 |
***************
|
|
Karsten Hopp |
b30674 |
*** 3212,3221 ****
|
|
Karsten Hopp |
b30674 |
* Register for remote command execution with :serversend and --remote
|
|
Karsten Hopp |
b30674 |
* unless there was a -X or a --servername '' on the command line.
|
|
Karsten Hopp |
b30674 |
* Only register nongui-vim's with an explicit --servername argument.
|
|
Karsten Hopp |
b30674 |
*/
|
|
Karsten Hopp |
b30674 |
if (X_DISPLAY != NULL && parmp->servername != NULL && (
|
|
Karsten Hopp |
b30674 |
# ifdef FEAT_GUI
|
|
Karsten Hopp |
b30674 |
! gui.in_use ||
|
|
Karsten Hopp |
b30674 |
# endif
|
|
Karsten Hopp |
b30674 |
parmp->serverName_arg != NULL))
|
|
Karsten Hopp |
b30674 |
{
|
|
Karsten Hopp |
b30674 |
--- 3212,3226 ----
|
|
Karsten Hopp |
b30674 |
* Register for remote command execution with :serversend and --remote
|
|
Karsten Hopp |
b30674 |
* unless there was a -X or a --servername '' on the command line.
|
|
Karsten Hopp |
b30674 |
* Only register nongui-vim's with an explicit --servername argument.
|
|
Karsten Hopp |
b30674 |
+ * When running as root --servername is also required.
|
|
Karsten Hopp |
b30674 |
*/
|
|
Karsten Hopp |
b30674 |
if (X_DISPLAY != NULL && parmp->servername != NULL && (
|
|
Karsten Hopp |
b30674 |
# ifdef FEAT_GUI
|
|
Karsten Hopp |
b30674 |
! (gui.in_use
|
|
Karsten Hopp |
b30674 |
! # ifdef UNIX
|
|
Karsten Hopp |
b30674 |
! && getuid() != 0
|
|
Karsten Hopp |
b30674 |
! # endif
|
|
Karsten Hopp |
b30674 |
! ) ||
|
|
Karsten Hopp |
b30674 |
# endif
|
|
Karsten Hopp |
b30674 |
parmp->serverName_arg != NULL))
|
|
Karsten Hopp |
b30674 |
{
|
|
Karsten Hopp |
b30674 |
*** ../vim-7.0.051/src/version.c Fri Aug 11 22:56:44 2006
|
|
Karsten Hopp |
b30674 |
--- src/version.c Tue Aug 15 21:41:24 2006
|
|
Karsten Hopp |
b30674 |
***************
|
|
Karsten Hopp |
b30674 |
*** 668,669 ****
|
|
Karsten Hopp |
b30674 |
--- 668,671 ----
|
|
Karsten Hopp |
b30674 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
b30674 |
+ /**/
|
|
Karsten Hopp |
b30674 |
+ 52,
|
|
Karsten Hopp |
b30674 |
/**/
|
|
Karsten Hopp |
b30674 |
|
|
Karsten Hopp |
b30674 |
--
|
|
Karsten Hopp |
b30674 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
b30674 |
148. You find it easier to dial-up the National Weather Service
|
|
Karsten Hopp |
b30674 |
Weather/your_town/now.html than to simply look out the window.
|
|
Karsten Hopp |
b30674 |
|
|
Karsten Hopp |
b30674 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
b30674 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
b30674 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
b30674 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|