diff options
author | Elliott Hughes <enh@google.com> | 2013-05-15 04:08:49 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-05-15 04:08:50 +0000 |
commit | 3e2241571780114108b94a76e08ddb69d578e606 (patch) | |
tree | 041226b92e8f2776dec7407e512b9bb321c916a4 /luni | |
parent | 07eae878ab525523e722eda6735f63022dbc0df2 (diff) | |
parent | ea2badecf96c9ff011f71fabb8566fef46c102cc (diff) | |
download | libcore-3e2241571780114108b94a76e08ddb69d578e606.zip libcore-3e2241571780114108b94a76e08ddb69d578e606.tar.gz libcore-3e2241571780114108b94a76e08ddb69d578e606.tar.bz2 |
Merge "Remove a workaround for a bionic bug that's been fixed."
Diffstat (limited to 'luni')
-rw-r--r-- | luni/src/main/native/libcore_io_Posix.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/luni/src/main/native/libcore_io_Posix.cpp b/luni/src/main/native/libcore_io_Posix.cpp index 7f40042..0745cbc 100644 --- a/luni/src/main/native/libcore_io_Posix.cpp +++ b/luni/src/main/native/libcore_io_Posix.cpp @@ -358,11 +358,6 @@ class Passwd { public: Passwd(JNIEnv* env) : mEnv(env), mResult(NULL) { mBufferSize = sysconf(_SC_GETPW_R_SIZE_MAX); - if (mBufferSize == -1UL) { - // We're probably on bionic, where 1KiB should be enough for anyone. - // TODO: fix bionic to return 1024 like glibc. - mBufferSize = 1024; - } mBuffer.reset(new char[mBufferSize]); } |