[6340] in bugtraq

home help back first fref pref prev next nref lref last post

Re: Midnight Commander /tmp race

daemon@ATHENA.MIT.EDU (willy@SNOWYOWL.CSU.AC.RU)
Wed Mar 18 15:38:51 1998

Date: 	Wed, 18 Mar 1998 10:10:10 +0500
Reply-To: willy@SNOWYOWL.CSU.AC.RU
From: willy@SNOWYOWL.CSU.AC.RU
X-To:         Pavel Kankovsky <peak@kerberos.troja.mff.cuni.cz>
To: BUGTRAQ@NETSPACE.ORG
In-Reply-To:  <Pine.LNX.3.95.980317180601.20509B-100000@kerberos.troja.mff.cuni.cz>

Good $daytime,

> Date: Tue, 17 Mar 1998 18:21:09 +0100
> From: Pavel Kankovsky <peak@kerberos.troja.mff.cuni.cz>
> To: BUGTRAQ@NETSPACE.ORG
> Subject: Re: Midnight Commander /tmp race

> Solution? Don't use any temporary file at all.

> mc()
> {
>         MC=`/usr/bin/mc -P "$@"`
>         [ -n "$MC" ] && cd $MC
>         unset MC
> }

> The function is from mcfn_install script. The alias in lib/mc.csh is
> similar. But lib/mc.sh is the aformentioned lame one. It's absurd.

Nope.  This (rather old) version breaks Ctrl-O for nonroot bash
instances.  However it works with Bourne shell.

  Regards,
  Willy.

--
"No easy hope or lies        | Vitaly "Willy the Pooh" Fedrushkov
 Shall bring us to our goal, | Information Technology Division
 But iron sacrifice          | Chelyabinsk State University
 Of Body, Will and Soul."    | mailto:willy@csu.ac.ru  +7 3512 156770
                   R.Kipling | http://www.csu.ac.ru/~willy  VVF1-RIPE

home help back first fref pref prev next nref lref last post