termux-packages/packages/bash/dont_endpwent_in_shell_c.patch

14 lines
333 B
Diff
Raw Normal View History

2015-06-13 01:03:31 +02:00
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
}
}