summaryrefslogtreecommitdiffstats
path: root/luni
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-05-15 04:08:49 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-05-15 04:08:50 +0000
commit3e2241571780114108b94a76e08ddb69d578e606 (patch)
tree041226b92e8f2776dec7407e512b9bb321c916a4 /luni
parent07eae878ab525523e722eda6735f63022dbc0df2 (diff)
parentea2badecf96c9ff011f71fabb8566fef46c102cc (diff)
downloadlibcore-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.cpp5
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]);
}