diff options
author | Daniel Verkamp <dverkamp@chromium.org> | 2019-06-13 19:36:08 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-07-03 16:35:43 -0700 |
commit | da52468b34ceacf8a3d74d191f09cf9d8099a0a6 (patch) | |
tree | 2b8f1afbd160ffdacfc2c085565b05e2fa235a49 /Cargo.lock | |
parent | 5104b9641cc6e85adcf45bebe636228ae6ab6eee (diff) | |
download | crosvm-da52468b34ceacf8a3d74d191f09cf9d8099a0a6.tar crosvm-da52468b34ceacf8a3d74d191f09cf9d8099a0a6.tar.gz crosvm-da52468b34ceacf8a3d74d191f09cf9d8099a0a6.tar.bz2 crosvm-da52468b34ceacf8a3d74d191f09cf9d8099a0a6.tar.lz crosvm-da52468b34ceacf8a3d74d191f09cf9d8099a0a6.tar.xz crosvm-da52468b34ceacf8a3d74d191f09cf9d8099a0a6.tar.zst crosvm-da52468b34ceacf8a3d74d191f09cf9d8099a0a6.zip |
tempfile: reimplement using libc::mkdtemp
POSIX provides a standard mkdtemp() function to securely create a temporary directory; use it rather than reinventing the wheel. This also drops the dependency of tempfile on rand_ish, which will allow easier use of the tempfile implementation outside of crosvm. BUG=chromium:974059 TEST=cargo test -p tempfile Change-Id: I34a226b046dc6f272106988a78d121a24a377f44 Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1659971 Tested-by: kokoro <noreply+kokoro@google.com> Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org> Reviewed-by: Dylan Reid <dgreid@chromium.org>
Diffstat (limited to 'Cargo.lock')
-rw-r--r-- | Cargo.lock | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cargo.lock b/Cargo.lock index 8446532..beaf37b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -483,7 +483,7 @@ version = "0.1.0" name = "tempfile" version = "3.0.7" dependencies = [ - "rand_ish 0.1.0", + "libc 0.2.44 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] |