about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-11-23 01:21:45 -0600
committerGitHub <noreply@github.com>2016-11-23 01:21:45 -0600
commitccdc26fd42dfccc5832114baa275f0936738095a (patch)
treed43904e10eb9fb0a67eec6b6cbbb5ece34257038 /src/rustllvm/RustWrapper.cpp
parent5196ca85189291adbb488339b321026a95330c45 (diff)
parent1aaca5f29069a05e1aed73e33dd314c069fde756 (diff)
downloadrust-ccdc26fd42dfccc5832114baa275f0936738095a.tar.gz
rust-ccdc26fd42dfccc5832114baa275f0936738095a.zip
Auto merge of #37886 - Stebalien:set-perm, r=alexcrichton
Add a method for setting permissions directly on an open file.

On unix like systems, the underlying file corresponding to any given path may change at any time. This function makes it possible to set the permissions of the a file corresponding to a `File` object even if its path changes.

@retep998, what's the best way to do this on Windows? I looked into `SetFileInformationByHandle` but couldn't find a way to do it atomically risking clobbering access time information.

This is a first step towards fixing #37885. This function doesn't *have* to be public but this is useful functionality that should probably be exposed.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions