mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Fix race condition in shtool's mkdir -p implementation (bug #51076)
This commit is contained in:
parent
bf7de28e46
commit
dcfb8ee366
@ -991,7 +991,11 @@ mkdir )
|
||||
if [ ".$opt_t" = .yes ]; then
|
||||
echo "mkdir $pathcomp" 1>&2
|
||||
fi
|
||||
mkdir $pathcomp || errstatus=$?
|
||||
mkdir $pathcomp || {
|
||||
_errstatus=$?
|
||||
[ -d "$pathcomp" ] || errstatus=${_errstatus}
|
||||
unset _errstatus
|
||||
}
|
||||
if [ ".$opt_o" != . ]; then
|
||||
if [ ".$opt_t" = .yes ]; then
|
||||
echo "chown $opt_o $pathcomp" 1>&2
|
||||
|
Loading…
Reference in New Issue
Block a user