zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: "compinit -i" not excluding some insecure dirs?
Date: Tue, 29 Sep 2015 10:59:15 -0700	[thread overview]
Message-ID: <150929105915.ZM30290@torch.brasslantern.com> (raw)
In-Reply-To: <5609B684.2010303@apjanke.net>

On Sep 28,  5:52pm, Andrew Janke wrote:
}
} But in this case I think it *is* scanning the insecure directory: I had 
} a _foo only in /insecure, not in /secure, and it still got picked up by 
} compinit and used for completion.

Hmm.

compaudit returns true when no insecure directories are found or when
it is passed the -u option.

compinit sets _comp_secure only when compaudit returns true.

compdump writes the files from the fpath directories into the dumpfile
only when _comp_secure is set.  However, I'm not sure this accomplishes
what was intended.

And in any case compinit doesn't otherwise change its behavior when
passed -i, so yes, that's clearly a bug in the case where the dump
file does not already exist.


      reply	other threads:[~2015-09-29 17:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-28 11:28 Andrew Janke
2015-09-28 21:17 ` Bart Schaefer
2015-09-28 21:52   ` Andrew Janke
2015-09-29 17:59     ` Bart Schaefer [this message]

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=150929105915.ZM30290@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /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).