Bug 869671 - ksh crashes when executed in from removed directory
ksh crashes when executed in from removed directory
Status: CLOSED CURRENTRELEASE
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ksh (Show other bugs)
7.0
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Michal Hlavinka
Jan Kepler
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-24 10:22 EDT by Michal Hlavinka
Modified: 2014-06-13 06:53 EDT (History)
2 users (show)

See Also:
Fixed In Version: ksh-20120801-4.el7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-06-13 06:53:12 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
patch to fix this (13.37 KB, patch)
2012-10-24 10:22 EDT, Michal Hlavinka
no flags Details | Diff

  None (edit)
Description Michal Hlavinka 2012-10-24 10:22:17 EDT
Created attachment 632816 [details]
patch to fix this

Description of problem:
#!/bin/bash

testit()
{
mkdir testdir
cd testdir
ksh -c 'sleep 1; FOO=$(/bin/echo $(/bin/echo "bar") ); echo success' &
cd ..
rmdir testdir
wait
}

if [ "$(testit)" = 'success' ]; then 
echo "works"
else
echo "BUG present";
fi


Version-Release number of selected component (if applicable):
ksh20120801
Comment 3 Ludek Smid 2014-06-13 06:53:12 EDT
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.

Note You need to log in before you can comment on or make changes to this bug.