Bug#690685: tinc: please allow raising shell limits in the init script

2012-10-16 Thread Gian Piero Carrubba
* [Tue, Oct 16, 2012 at 09:17:00PM +0400] Michael Tokarev: +test -n "$LIMITS" && setlimits $LIMITS Can't you just do test -n "$LIMITS" && ulimit $LIMITS ? I guess so, if your /bin/sh is linked to bash or you only set one parameter or the shebang line is changed to be /bin/bash or well, some

Bug#690685: tinc: please allow raising shell limits in the init script

2012-10-16 Thread Michael Tokarev
On 16.10.2012 21:11, Gian Piero Carrubba wrote: > +setlimits() { > + while [ $# -gt 0 ]; do > +parm=$1 ; shift > +if [ -n "$1" -a "${1#-}" = "$1" ]; then > + value=$1 ; shift > + ulimit $parm $value > +else > + ulimit $parm > +fi > + done > +} > + > +test -n "$LIMI

Bug#690685: tinc: please allow raising shell limits in the init script

2012-10-16 Thread Gian Piero Carrubba
* [Tue, Oct 16, 2012 at 03:30:18PM +0200] Gian Piero Carrubba: A simple patch is attached. This way it should be possible to use both --mlock and --user with an unprivileged user and more than few tinc nodes without incurring in the problem reported in [0]_ (namely, "Error while processing META

Bug#690685: tinc: please allow raising shell limits in the init script

2012-10-16 Thread Gian Piero Carrubba
* [Tue, Oct 16, 2012 at 04:44:41PM +0200] Guus Sliepen: On Tue, Oct 16, 2012 at 03:30:18PM +0200, Gian Piero Carrubba wrote: A simple patch is attached. This way it should be possible to use both --mlock and --user with an unprivileged user and more than few tinc nodes without incurring in the

Bug#690685: tinc: please allow raising shell limits in the init script

2012-10-16 Thread Guus Sliepen
On Tue, Oct 16, 2012 at 03:30:18PM +0200, Gian Piero Carrubba wrote: > A simple patch is attached. This way it should be possible to use > both --mlock and --user with an unprivileged user and more than few > tinc nodes without incurring in the problem reported in [0]_ > (namely, "Error while proc

Bug#690685: tinc: please allow raising shell limits in the init script

2012-10-16 Thread Gian Piero Carrubba
Package: tinc Version: 1.0.19-2 Severity: wishlist Tags: patch A simple patch is attached. This way it should be possible to use both --mlock and --user with an unprivileged user and more than few tinc nodes without incurring in the problem reported in [0]_ (namely, "Error while processing ME