]> sourceware.org Git - newlib-cygwin.git/commit
cygwin: unify reparse point checking code into single function
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 24 Jul 2017 15:33:20 +0000 (17:33 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 24 Jul 2017 15:33:20 +0000 (17:33 +0200)
commit3e80cefb16cab409c00d5b61be0f7a3befc688e3
treed966684abb04e50270c240d9094826b5e13af8d9
parent42f1be581cdc10438b797c3a5941035a97f01cc4
cygwin: unify reparse point checking code into single function

So far we had two functions checking the content of a reparse point,
readdir_check_reparse_point in fhandler_disk_file.cc for the sake of
readdir, and symlink_info::check_reparse_point for the sake of
generic path checking.

* Rename check_reparse_point_target helper to check_reparse_point_string
  and convert to static function.
* Create new check_reparse_point_target helper containing the core
  reparse point checking code
* Just call check_reparse_point_target from readdir_check_reparse_point
  and symlink_info::check_reparse_point and only perform the unique
  task in those functions.

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