diff options
| author | Nick Kralevich <nnk@google.com> | 2014-01-17 16:16:42 -0800 |
|---|---|---|
| committer | Nick Kralevich <nnk@google.com> | 2014-01-17 16:16:42 -0800 |
| commit | 72917837e6a1163bd389cf535eb404501a118cf2 (patch) | |
| tree | 21966583e60ff8e6a3bc75b43bbf036705d7e8c4 /trusty/coverage/coverage_test.cpp | |
| parent | 6192eedb43bfa949569850b5cf4a6550b2c62f08 (diff) | |
Fix "adb push /sdcard/filename"
Don't assume that calling chown(filename, getuid(), getgid())
will always succeed. In the case of /sdcard, a file you create
will be owned by root, so the chown call will fail.
Instead, use uid=gid=-1 so that the chown call is truly a no-op.
Ignore the results of calling chmod. Again, for /sdcard, the
chmod call will never succeed, because the file isn't owned by
the shell user.
Bug: 12441485
Change-Id: I11eaf1d6f6049c1158afc29754fbb7af2baf2c78
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions
