Bugtraq mailing list archives

Re: Midnight Commander /tmp race


From: willy () SNOWYOWL CSU AC RU (willy () SNOWYOWL CSU AC RU)
Date: Wed, 18 Mar 1998 10:10:10 +0500


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



Current thread: