Luca Capello <[EMAIL PROTECTED]> hit the keyboard. Afterwards the following was on the screen:
> On Wed, 06 Dec 2006 20:24:04 +0100, Rasmus Bøg Hansen wrote: >> The attached patch fixes this bug (which I've been bitten by too): > > I already posted a similar patch to bug #397088 [1], please let me > comment yours. I thought I'd looked well though all bug reports, but I missed that one :-) >> + if [ ! -d $SCREENDIR ]; then >> + mkdir $SCREENDIR >> + chown root:utmp $SCREENDIR >> + chmod 775 $SCREENDIR > > As in my previous patch, why not directly create the directory with > proper permissions and be a bit more verbose? Thus: > ===== > --- /etc/init.d/screen-cleanup 2004-11-14 19:26:30.000000000 +0100 > +++ /home/luca/screen-cleanup 2006-12-12 22:02:08.000000000 +0100 > @@ -9,6 +9,12 @@ > > case "$1" in > start) > + if [ ! -d $SCREENDIR ]; then > + echo -n "Creating $SCREENDIR..." > + mkdir -m 0775 $SCREENDIR > + chown root:utmp $SCREENDIR > + echo "done." > + fi > if find $SCREENDIR -type p | grep '^' >/dev/null; then > echo -n 'Cleaning up stale screen sessions... ' > find $SCREENDIR -type p -print0 | xargs -0 rm -f > ===== That seems good to me. I'd go for your version. Regards /Rasmus -- -- [ Rasmus "Møffe" Bøg Hansen ] --------------------------------------- "Microsoft spel chekar worgs grate!" ----------------------------------------------[ moffe at zz9 dot dk ] --

