X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/798619b91c91405f847b0e48137239f218a4cf15..59f0d218a6ff34c80cf898f6d7ac62555ba8eb11:/packages/bash/etc_hosts_and_profile_path.patch?ds=sidebyside diff --git a/packages/bash/etc_hosts_and_profile_path.patch b/packages/bash/etc_hosts_and_profile_path.patch new file mode 100644 index 00000000..616c3520 --- /dev/null +++ b/packages/bash/etc_hosts_and_profile_path.patch @@ -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@"