Bugtraq mailing list archives
Re: Midnight Commander /tmp race
From: peak () kerberos troja mff cuni cz (Pavel Kankovsky)
Date: Wed, 18 Mar 1998 11:27:46 +0100
On Wed, 18 Mar 1998 willy () snowyowl csu ac ru wrote:
mc() { MC=`/usr/bin/mc -P "$@"` [ -n "$MC" ] && cd $MC unset MC }Nope. This (rather old) version breaks Ctrl-O for nonroot bash instances. However it works with Bourne shell.
It is the "suspend key" (ctrl-z by default) but I get the point. bash 1.14.7, bash 2.00.0, and Solaris 2.5 ksh lock hard when the command in `` (or $()) is suspended. tcsh 6.06, Sol 2.5 csh, and Sol 2.5 jsh (sh + job control) disregard ctrl+z when processing the command in ``. Nevertheless, the function using a temporary file is not perfect either: it allows the user to suspend mc but when as the process is stopped the shell executes the rest of the function immediately (is it a bug or a feature?) and the desired effect is lost. --Pavel Kankovsky aka Peak [ Boycott Microsoft -- http://www.vcnet.com/bms ] P.S. There are probably many dark cornerns in the job control: for instance, ``command1 && command2'' and ``command1 || command2''. What should happen when command1 is suspended? bash assumes command1 exits with code 0, csh seems to discard command2, jsh does not allow to suspend command1.
Current thread:
- MDaemon SMTP Server Buffer Overflow's, (continued)
- MDaemon SMTP Server Buffer Overflow's Aleph One (Mar 10)
- Security problem in Slackware. Suman_Saraf (Mar 11)
- Re: Security problem in Slackware. Peter van Dijk (Mar 13)
- /tmp event logger Michal Zalewski (Mar 14)
- Re: /tmp event logger Theo de Raadt (Mar 15)
- Vunerable shell scripts Michal Zalewski (Mar 14)
- More broadcast fun T. Freak (Mar 14)
- Midnight Commander /tmp race Michal Zalewski (Mar 15)
- Re: Midnight Commander /tmp race Pavel Kankovsky (Mar 17)
- Re: Midnight Commander /tmp race willy () SNOWYOWL CSU AC RU (Mar 17)
- Re: Midnight Commander /tmp race Pavel Kankovsky (Mar 18)
- Solaris printd security vulnerability Aleph One (Mar 11)
- Sun Security Bulletin #00165 Aleph One (Mar 11)
- Fwd: Sun Security Bulletin #00166 Tony Hagale (Mar 11)
- SLMail 2.6 DoS Steven (Mar 11)
- SLMail 2.6 DoS - Imail also Jon (Mar 11)
- Winsock 2.0 DoS John Robinson (Mar 11)
- Re: Winsock 2.0 DoS Henri Karrenbeld (Mar 12)
- more testing of Winsock 2.0 DoS Velocet (Mar 12)
- Re: Winsock 2.0 DoS stevep () ee pdx edu (Mar 12)
- InfoSecurity News jericho () DIMENSIONAL COM (Mar 13)