zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] Allow gid 0 in compaudit
@ 2002-10-04 16:08 Frank v Waveren
  2002-10-04 19:30 ` Dan Nelson
  0 siblings, 1 reply; 7+ messages in thread
From: Frank v Waveren @ 2002-10-04 16:08 UTC (permalink / raw)
  To: zsh-workers

[-- 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 ]]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-10-04 21:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-04 16:08 [PATCH] Allow gid 0 in compaudit Frank v Waveren
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

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).