mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-11-27 06:11:00 +01:00
Use mktemp to securely initialize the build directory
Hopefully this works between BSD and GNU mktemp. Closes #540
This commit is contained in:
parent
f6e8dc1ebd
commit
c660cfcd03
1 changed files with 1 additions and 1 deletions
|
|
@ -1366,7 +1366,7 @@ RUBY_BIN="${PREFIX_PATH}/bin/ruby"
|
|||
CWD="$(pwd)"
|
||||
|
||||
if [ -z "$RUBY_BUILD_BUILD_PATH" ]; then
|
||||
BUILD_PATH="${TMP}/ruby-build.${SEED}"
|
||||
BUILD_PATH="$(mktemp -d "${LOG_PATH%.log}.XXXXXX")"
|
||||
else
|
||||
BUILD_PATH="$RUBY_BUILD_BUILD_PATH"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue