summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2016-07-28 18:09:48 -0700
committerJosh Gao <jmgao@google.com>2016-08-03 15:14:59 -0700
commit29e7e3edb1edb4567ef9f354d9a5290b92394492 (patch)
treecdcc107561f26ac2372f4c5628449552333ab106 /trusty/coverage/coverage.cpp
parent89b97677765cdc8d99319d85619f551ed5107d25 (diff)
adb: fix stat on Windows.
stat on Windows fails with ENOENT when passed a path with a trailing slash or backslash, regardless of whether the target is actually a directory. Emulate the correct POSIX behavior by stripping trailing path separators and then checking if the target is a directory if successful. Bug: http://b/30481559 Bug: https://code.google.com/p/android/issues/detail?id=214633 Change-Id: I1d398d19a9bce1ecb3fdc4aabc31aa98c82c3f93 Test: Relevant adb_tests pass on Linux and Windows 10. (cherry picked from commit f551ea0f6309465eeab70404076bd881320f4883)
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions