zsh-workers
 help / color / mirror / code / Atom feed
From: Frank v Waveren <fvw@var.cx>
To: zsh-workers@sunsite.dk
Subject: [PATCH] Allow gid 0 in compaudit
Date: Fri, 4 Oct 2002 18:08:29 +0200	[thread overview]
Message-ID: <1033747042SCQ.fvw@jareth.var.cx> (raw)

[-- Attachment #1: Type: text/plain, Size: 636 bytes --]

Attached is a patch to have compaudit (called by compaudit) not
complain about directories owned by wheel, is there any chance of
having it applied? I can't think of any systems where gid 0 can't be
trusted...

I'd appreciate it if someone could give it a quick check, I'm pretty
sure it's right but the syntax is still slightly disorienting to me.
(it just adds the not group 0 check after the f:g+w:)

-- 
Frank v Waveren                                      Fingerprint: 0EDB 8787
fvw@[var.cx|stack.nl|dse.nl|chello.nl] ICQ#10074100     09B9 6EF5 6425 B855
Public key: hkp://wwwkeys.pgp.net/fvw@var.cx            7179 3036 E136 B85D

[-- Attachment #2: zsh-4.0.6-compaudit-wheel.diff --]
[-- Type: text/plain, Size: 858 bytes --]

diff -urN zsh-4.0.6/Completion/compaudit zsh-fvw/Completion/compaudit
--- zsh-4.0.6/Completion/compaudit	Fri Aug  9 15:30:07 2002
+++ zsh-fvw/Completion/compaudit	Fri Oct  4 18:04:50 2002
@@ -102,11 +102,11 @@
 #   (including zwc files)
 
 if [[ $GROUP == $LOGNAME && ( -z $GROUPMEM || $GROUPMEM == $LOGNAME ) ]]; then
-  _i_wdirs=( ${^fpath}(Nf:g+w:^g:${GROUP}:,f:o+w:,^u0u${EUID})
-             ${^fpath}/..(Nf:g+w:^g:${GROUP}:,f:o+w:,^u0u${EUID}) )
+  _i_wdirs=( ${^fpath}(Nf:g+w:^g:${GROUP}:g0,f:o+w:,^u0u${EUID})
+             ${^fpath}/..(Nf:g+w:^g:${GROUP}:g0,f:o+w:,^u0u${EUID}) )
 else
-  _i_wdirs=( ${^fpath}(Nf:g+w:,f:o+w:,^u0u${EUID})
-             ${^fpath}/..(Nf:g+w:,f:o+w:,^u0u${EUID}) )
+  _i_wdirs=( ${^fpath}(Nf:g+w:^g0,f:o+w:,^u0u${EUID})
+             ${^fpath}/..(Nf:g+w:^g0,f:o+w:,^u0u${EUID}) )
 fi
 
 if [[ -f /etc/debian_version ]]

             reply	other threads:[~2002-10-04 16:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-04 16:08 Frank v Waveren [this message]
2002-10-04 19:30 ` Dan Nelson
2002-10-04 20:39   ` Frank v Waveren
2002-10-04 20:42     ` Frank v Waveren
2002-10-04 20:52       ` Dan Nelson
2002-10-04 21:32         ` Frank v Waveren
2002-10-04 21:58         ` Frank v Waveren

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=1033747042SCQ.fvw@jareth.var.cx \
    --to=fvw@var.cx \
    --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).