aboutsummaryrefslogtreecommitdiff
path: root/client/auth.cpp
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:19:53 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:19:53 +0000
commit7a9fb41030e1e2c83a6f8e7a93d588eddfe3aec4 (patch)
tree26c4570f6cc8f5ee36233bd88a2b1236e65a8f20 /client/auth.cpp
parent5979bcb5027a90f89acb289aefbbbfb51e0d1b4b (diff)
parentc362e05a76d7238f684234fe4ad6768c0c461b8d (diff)
downloadadb-7a9fb41030e1e2c83a6f8e7a93d588eddfe3aec4.tar.gz
Change-Id: I5b8c69036ab58b779643c014c99e7d400ae32fab
Diffstat (limited to 'client/auth.cpp')
-rw-r--r--client/auth.cpp5
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__)