[Pkg-zsh-devel] Bug#765410: Bug#765410: ulimit broken if it fails once
Goswin von Brederlow
goswin-v-b at web.de
Thu Oct 16 08:12:18 UTC 2014
On Wed, Oct 15, 2014 at 10:56:54AM +0200, Axel Beckert wrote:
> Control: tag -1 + confirmed upstream
> Control: retitle -1 zsh: ulimit broken as root if it fails once
> Control: found -1 4.3.17-1
> Control: found -1 5.0.6-3
> Control: found -1 4.3.10-14
>
> Hi Goswin,
>
> thanks for the report.
>
> Goswin von Brederlow wrote:
> > Package: zsh
> > Version: 5.0.5-2
>
> JFTR: That version is no more anywhere in Debian. Testing has 5.0.6-3.
Earliest I had at hand to test.
> > root at frosties:~# ulimit -n 1000
> > root at frosties:~# ulimit -n 10000000
> > limit: setrlimit failed: operation not permitted
> > root at frosties:~# ulimit -n 1000
> > limit: setrlimit failed: operation not permitted
> >
> > Once setting a limit with ulimit fails all further attempts to set a
> > limit will also fail. But only in zsh. Works fine in bash.
>
> Interestingly this only happens if zsh is used as root. It does not
> happen if zsh is used as non-root user. Retitling accordingly.
>
> I've found this behaviour in at least Squeeze, Wheezy and Testing/Sid.
> Will test Experimental later today, too. If I find it there, too, I'll
> forward it to upstream.
I believe that as non root there first is a check that the limit is
not raised above the current value. Only root is allowed to do that.
So it fails at a different place, maybe even already in zsh.
MfG
Goswin
More information about the Pkg-zsh-devel
mailing list