Mercurial > vim
changeset 926:bde3b38593f9 v7.0.052
updated for version 7.0-052
author | vimboss |
---|---|
date | Tue, 15 Aug 2006 19:40:35 +0000 |
parents | 3d842a9e2bae |
children | 6632670ff6fc |
files | src/main.c src/version.c |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main.c +++ b/src/main.c @@ -3212,10 +3212,15 @@ prepare_server(parmp) * Register for remote command execution with :serversend and --remote * unless there was a -X or a --servername '' on the command line. * Only register nongui-vim's with an explicit --servername argument. + * When running as root --servername is also required. */ if (X_DISPLAY != NULL && parmp->servername != NULL && ( # ifdef FEAT_GUI - gui.in_use || + (gui.in_use +# ifdef UNIX + && getuid() != 0 +# endif + ) || # endif parmp->serverName_arg != NULL)) {