Browse Source

Fix race condition in shtool's mkdir -p implementation (bug #51076)

experimental/first_unicode_implementation
Raphael Geissert 17 years ago
parent
commit
dee7bf71a6
  1. 6
      build/shtool

6
build/shtool

@ -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…
Cancel
Save