Initial push
[termux-packages] / packages / bash / dont_endpwent_in_shell_c.patch
diff --git a/packages/bash/dont_endpwent_in_shell_c.patch b/packages/bash/dont_endpwent_in_shell_c.patch
new file mode 100644 (file)
index 0000000..08112bd
--- /dev/null
@@ -0,0 +1,13 @@
+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
+     }
+ }