Initial push
[termux-packages] / packages / bash / etc_hosts_and_profile_path.patch
diff --git a/packages/bash/etc_hosts_and_profile_path.patch b/packages/bash/etc_hosts_and_profile_path.patch
new file mode 100644 (file)
index 0000000..616c352
--- /dev/null
@@ -0,0 +1,15 @@
+--- ../bash-4.2/pathnames.h.in 2009-01-04 20:32:40.000000000 +0100
++++ ./pathnames.h.in   2014-02-04 18:34:17.000000000 +0100
+@@ -22,10 +22,10 @@
+ #define _PATHNAMES_H_
+ /* The default file for hostname completion. */
+-#define DEFAULT_HOSTS_FILE "/etc/hosts"
++#define DEFAULT_HOSTS_FILE "@TERMUX_PREFIX@/etc/hosts"
+ /* The default login shell startup file. */
+-#define SYS_PROFILE "/etc/profile"
++#define SYS_PROFILE "@TERMUX_PREFIX@/etc/profile"
+ /* The default location of the bash debugger initialization/startup file. */
+ #define DEBUGGER_START_FILE   "@DEBUGGER_START_FILE@"