diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2017-10-18 17:15:08 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2017-10-18 17:15:08 +0300 |
commit | 9ac4c0325fba621cdb5bf503b2521b4edd35086f (patch) | |
tree | 33cbbcb54a622b2ea97301a84630b6af21d75395 /winsup | |
parent | 5224eb7517498318595fd7f9a67d9a1b50b66d25 (diff) |
cygwin: unlink: simplify rootdir handling
In try_to_bin, rootdir is NULL for remote drives anyway. No extra
check required.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 8ff50c850..96fb6f39f 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -394,7 +394,7 @@ try_to_bin (path_conv &pc, HANDLE &fh, ACCESS_MASK access, ULONG flags) /* Shoot. */ pfri = (PFILE_RENAME_INFORMATION) infobuf; pfri->ReplaceIfExists = TRUE; - pfri->RootDirectory = pc.isremote () ? NULL : rootdir; + pfri->RootDirectory = rootdir; pfri->FileNameLength = recycler.Length; memcpy (pfri->FileName, recycler.Buffer, recycler.Length); frisiz = sizeof *pfri + pfri->FileNameLength - sizeof (WCHAR); |