commit | e9e18f53c3b5fd6406257e03f1e36678d69f38dd | [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 | 227697533f7655e5206174c04882fe1325114227 | |
parent | 536f063538e5109dd9b1a6b921b346979f1af22c [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