OSDN Git Service

Fix lshal cannot be run without root
authorYifan Hong <elsk@google.com>
Fri, 17 Feb 2017 21:38:47 +0000 (13:38 -0800)
committerYifan Hong <elsk@google.com>
Fri, 17 Feb 2017 22:56:19 +0000 (14:56 -0800)
commit38903c0f88efefec3573d9ff3a8e28131da2f3b5
tree503be85765616c7dbb400cd7b58564d94569c355
parent9753b433552f3856dc9e3a022dd6cfaa72f273d0
Fix lshal cannot be run without root

Root cause is invoking copy constructor on a Return<T> object
implicitly, while the old object contains a failed status and
gets destroyed. Use the move constructor instead to fix this.

Test: adb unroot && adb shell lshal
Change-Id: I44710166cc5d7da30bf54b10d1860be1b91dc98a
cmds/lshal/Timeout.h