zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: compinit quirk
Date: Fri, 6 Apr 2001 14:24:28 +0000	[thread overview]
Message-ID: <1010406142428.ZM12049@candle.brasslantern.com> (raw)
In-Reply-To: <200104060829.KAA11875@beta.informatik.hu-berlin.de>

On Apr 6, 10:29am, Sven Wischnowsky wrote:
} 
} Quoting the docs:
} 
}   For security reasons tt(compinit) also checks if the completion system
}   would use files not owned by root or by the current user, or files in
}   directories that are world- or group-writable or that are not owned by 
}   root or by the current user.  If such files or directories are found,
}   tt(compinit) will ask if the completion system should really be used.

Aha!  So it's the question that's misleading.  When I'm asked:

    There are insecure directories, use them anyway [ny]? 

"Use *them* anyway" means, to me, "include the insecure directories among
those searched by the completion system for functions."  What the question
is actually asking is:

    Ignore insecure directories and continue [ny]?

So let's actually say that.

Index: Completion/compinit
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/compinit,v
retrieving revision 1.2
diff -u -r1.2 compinit
--- Completion/compinit	2001/04/02 13:04:04	1.2
+++ Completion/compinit	2001/04/06 14:21:38
@@ -387,7 +387,8 @@
   if ! eval compaudit; then
     if [[ -n "$_i_q" ]]; then
       if [[ "$_i_fail" = ask ]]; then
-        if ! read -q "?There are insecure $_i_q, use them anyway [ny]? "; then
+        if ! read -q "?Ignore insecure $_i_q and continue [ny]? "; then
+	  echo "$0: initialization aborted"
           unfunction compinit compdef
           unset _comp_dumpfile _comp_secure compprefuncs comppostfuncs \
                 _comps _patcomps _postpatcomps _compautos _lastcomp

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


           reply	other threads:[~2001-04-06 14:25 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <200104060829.KAA11875@beta.informatik.hu-berlin.de>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1010406142428.ZM12049@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).