* 07cond test failure
@ 2000-03-03 13:59 Andrej Borsenkow
2000-03-03 18:26 ` Andrej Borsenkow
0 siblings, 1 reply; 3+ messages in thread
From: Andrej Borsenkow @ 2000-03-03 13:59 UTC (permalink / raw)
To: ZSH workers mailing list
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?
/andrej
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: 07cond test failure
2000-03-03 13:59 07cond test failure Andrej Borsenkow
@ 2000-03-03 18:26 ` Andrej Borsenkow
2000-03-04 5:47 ` Bart Schaefer
0 siblings, 1 reply; 3+ messages in thread
From: Andrej Borsenkow @ 2000-03-03 18:26 UTC (permalink / raw)
To: ZSH workers mailing list
>
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 07cond test failure
2000-03-03 18:26 ` Andrej Borsenkow
@ 2000-03-04 5:47 ` Bart Schaefer
0 siblings, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 2000-03-04 5:47 UTC (permalink / raw)
To: ZSH workers mailing list
On Mar 3, 4:59pm, Andrej Borsenkow wrote:
} Subject: 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.
On Mar 3, 9:26pm, Andrej Borsenkow wrote:
} Subject: RE: 07cond test failure
}
} Hmm ... I'm afarid I was not clear enough.
You were clear enough.
} > Why 07cond sets umask to 077?
It's so the files are guaranteed not to have any modes that zsh does
not actually set, I think. Here's a simple patch; it should work, but
let me know anyway:
Index: Test/07cond.ztst
===================================================================
@@ -15,7 +15,7 @@
print 'Garbuglio' >nonzerolength
mkdir modish
- chmod g+s modish
+ chmod g+xs modish
chmod u+s modish
chmod +t modish
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-03-04 5:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-03 13:59 07cond test failure Andrej Borsenkow
2000-03-03 18:26 ` Andrej Borsenkow
2000-03-04 5:47 ` Bart Schaefer
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).