]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: try_to_bin: don't check recycler filename all the time
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 9 Jan 2019 20:14:58 +0000 (21:14 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 9 Jan 2019 20:48:43 +0000 (21:48 +0100)
commitfbd3835384fa586fd32ce80280d81bb51ab042ba
treefb12abc16eafeb2f3b9f118068b1324d13f4c2c3
parentb7a6d357ee23d690a6559235600b85801d6ad025
Cygwin: try_to_bin: don't check recycler filename all the time

So far we check the recycler name all the time, and the last interation
also only managed to handle two ways to write the recycler.  However,
an adventurous user might change the case of the recycler arbitrarily.

Fix this problem by keeping track of the name in a somewhat relaxed
fashion.  Use camel back on drive C by default, all upper case elsewhere.
Only if the rename op fails do we fix the recycler name on the fly
when trying to create it, and it turns out it already existed.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/syscalls.cc
This page took 0.029721 seconds and 5 git commands to generate.