--- /dev/null
+diff -u -r ../bash-4.2/shell.c ./shell.c
+--- ../bash-4.2/shell.c 2011-01-02 22:04:51.000000000 +0100
++++ ./shell.c 2014-02-11 11:20:46.000000000 +0100
+@@ -1654,7 +1654,9 @@
+ current_user.shell = savestring ("/bin/sh");
+ current_user.home_dir = savestring ("/");
+ }
++#ifndef __ANDROID__
+ endpwent ();
++#endif
+ }
+ }
+