Loading adb/file_sync_service.cpp +8 −5 Original line number Diff line number Diff line Loading @@ -166,6 +166,11 @@ static bool handle_send_file(int s, const char* path, uid_t uid, goto fail; } if (selinux_android_restorecon(path, 0) == -1) { SendSyncFailErrno(s, "selinux_android_restorecon failed"); goto fail; } // fchown clears the setuid bit - restore it if present. // Ignore the result of calling fchmod. It's not supported // by all filesystems. b/12441485 Loading Loading @@ -201,8 +206,6 @@ static bool handle_send_file(int s, const char* path, uid_t uid, adb_close(fd); selinux_android_restorecon(path, 0); utimbuf u; u.actime = timestamp; u.modtime = timestamp; Loading Loading
adb/file_sync_service.cpp +8 −5 Original line number Diff line number Diff line Loading @@ -166,6 +166,11 @@ static bool handle_send_file(int s, const char* path, uid_t uid, goto fail; } if (selinux_android_restorecon(path, 0) == -1) { SendSyncFailErrno(s, "selinux_android_restorecon failed"); goto fail; } // fchown clears the setuid bit - restore it if present. // Ignore the result of calling fchmod. It's not supported // by all filesystems. b/12441485 Loading Loading @@ -201,8 +206,6 @@ static bool handle_send_file(int s, const char* path, uid_t uid, adb_close(fd); selinux_android_restorecon(path, 0); utimbuf u; u.actime = timestamp; u.modtime = timestamp; Loading