| 1 | diff -u -r ../bash-4.2/lib/readline/complete.c ./lib/readline/complete.c |
| 2 | --- ../bash-4.2/lib/readline/complete.c 2011-01-16 21:32:57.000000000 +0100 |
| 3 | +++ ./lib/readline/complete.c 2014-01-13 12:28:56.338866643 +0100 |
| 4 | @@ -2021,7 +2021,7 @@ |
| 5 | const char *text; |
| 6 | int state; |
| 7 | { |
| 8 | -#if defined (__WIN32__) || defined (__OPENNT) |
| 9 | +#if defined (__WIN32__) || defined (__OPENNT) || defined (__ANDROID__) |
| 10 | return (char *)NULL; |
| 11 | #else /* !__WIN32__ && !__OPENNT) */ |
| 12 | static char *username = (char *)NULL; |
| 13 | diff -u -r ../bash-4.2/shell.c ./shell.c |
| 14 | --- ../bash-4.2/shell.c 2011-01-02 22:04:51.000000000 +0100 |
| 15 | +++ ./shell.c 2014-01-13 12:43:01.070846472 +0100 |
| 16 | @@ -1638,6 +1638,7 @@ |
| 17 | /* Don't fetch this more than once. */ |
| 18 | if (current_user.user_name == 0) |
| 19 | { |
| 20 | +#ifndef __ANDROID__ |
| 21 | entry = getpwuid (current_user.uid); |
| 22 | if (entry) |
| 23 | { |
| 24 | @@ -1649,12 +1650,15 @@ |
| 25 | } |
| 26 | else |
| 27 | { |
| 28 | +#endif |
| 29 | current_user.user_name = _("I have no name!"); |
| 30 | current_user.user_name = savestring (current_user.user_name); |
| 31 | current_user.shell = savestring ("/bin/sh"); |
| 32 | current_user.home_dir = savestring ("/"); |
| 33 | +#ifndef __ANDROID__ |
| 34 | } |
| 35 | endpwent (); |
| 36 | +#endif |
| 37 | } |
| 38 | } |
| 39 | |