Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: 07cond test failure
- X-seq: zsh-workers 9986
 
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
 
- To: "ZSH workers mailing list" <zsh-workers@xxxxxxxxxxxxxx>
 
- Subject: RE: 07cond test failure
 
- Date: Fri, 3 Mar 2000 21:26:59 +0300
 
- Importance: Normal
 
- In-reply-to: <000501bf8518$ba860d80$21c9ca95@xxxxxxxxxxxxxx>
 
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
 
>
> bor@itsrm2% zsh -f ztst.zsh 07cond.ztst
> chmod: Execute permission required for set-ID
>         on execution for modish
> 	...
> Test 07cond.ztst failed: bad status 1, expected 0 from:
>   [[ -g modish && ! -g zerolength ]]
> Was testing: -g cond
>
> SUS V2 specifies this as implementation dependent.
>
> Why 07cond sets umask to 077?
>
Hmm ... I'm afarid I was not clear enough. 07cond.ztst sets umask to 077 and
creates directory modish that gets permissions 700. Than it tries to set
SGID bit that fails because x bit is not set for group and SGID is not
permitted in this case.
/andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author