diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 05:19:53 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 05:19:53 +0000 |
commit | 7a9fb41030e1e2c83a6f8e7a93d588eddfe3aec4 (patch) | |
tree | 26c4570f6cc8f5ee36233bd88a2b1236e65a8f20 /client/auth.cpp | |
parent | 5979bcb5027a90f89acb289aefbbbfb51e0d1b4b (diff) | |
parent | c362e05a76d7238f684234fe4ad6768c0c461b8d (diff) | |
download | adb-7a9fb41030e1e2c83a6f8e7a93d588eddfe3aec4.tar.gz |
Snap for 10453563 from c362e05a76d7238f684234fe4ad6768c0c461b8d to mainline-sdkext-releaseaml_sdk_341710000aml_sdk_341510000aml_sdk_341410000aml_sdk_341110080aml_sdk_341110000aml_sdk_341010000aml_sdk_340912010android14-mainline-sdkext-release
Change-Id: I5b8c69036ab58b779643c014c99e7d400ae32fab
Diffstat (limited to 'client/auth.cpp')
-rw-r--r-- | client/auth.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/client/auth.cpp b/client/auth.cpp index db4c4790..10b835e5 100644 --- a/client/auth.cpp +++ b/client/auth.cpp @@ -331,9 +331,8 @@ int adb_auth_pubkey(const char* filename) { if (!pubkey_from_privkey(&pubkey, filename)) { return 1; } - pubkey.push_back('\n'); - - return WriteFdExactly(STDOUT_FILENO, pubkey.data(), pubkey.size()) ? 0 : 1; + fprintf(stdout, "%s\n", pubkey.data()); + return 0; } #if defined(__linux__) |