From ea2badecf96c9ff011f71fabb8566fef46c102cc Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 14 May 2013 18:09:08 -0700 Subject: Remove a workaround for a bionic bug that's been fixed. d35106fd557e054d1ffe388df6a3b3cb51cc5021 fixed bionic. glibc was always correct. Change-Id: I26c6567bbc0895fc447b249cb029768bae6e4ab5 --- luni/src/main/native/libcore_io_Posix.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'luni') 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]); } -- cgit v1.1