commit | ce6d3a5b021a8da22bbf732b9e72de21a667830a | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Thu Sep 26 01:49:56 2019 +0800 |
committer | Josh Gao <jmgao@google.com> | Thu Sep 26 01:56:58 2019 +0800 |
tree | 7543d7b8cf1a1aa8cd547ae5819b8b63f9ee6b57 | |
parent | 68e61928b63ae46d26013a617ff843b8d274b6fe [diff] |
adb: fix infinite loop when attempting to push to //foo. dirname (on glibc, at least) preserves multiple leading slashes, and we were looping until path != "/", which would lead to an infinite loop when attempting to push to a path like //data/local/tmp. Bug: http://b/141311284 Test: python -m unittest test_device.FileOperationsTest.test_push_multiple_slash_root Change-Id: I182b3e89ef52579c716fdb525e9215f1fe822477