Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RE: 07cond test failure



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