ksh-prefix.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --- a/src/cmd/ksh93/data/msg.c
  2. +++ b/src/cmd/ksh93/data/msg.c
  3. @@ -180,7 +180,7 @@
  4. const char e_sptbnl[] = " \t\n";
  5. const char e_tolower[] = "tolower";
  6. const char e_toupper[] = "toupper";
  7. -const char e_defpath[] = "/bin:/usr/bin:";
  8. +const char e_defpath[] = "@GENTOO_PORTAGE_EPREFIX@/bin:@GENTOO_PORTAGE_EPREFIX@/usr/bin:";
  9. const char e_defedit[] = _pth_ed;
  10. const char e_unknown [] = "<command unknown>";
  11. const char e_devnull[] = "/dev/null";
  12. @@ -188,24 +188,24 @@
  13. const char e_supprompt[] = "# ";
  14. const char e_stdprompt[] = "$ ";
  15. const char e_profile[] = "$HOME/.profile";
  16. -const char e_sysprofile[] = "/etc/profile";
  17. -const char e_suidprofile[] = "/etc/suid_profile";
  18. +const char e_sysprofile[] = "@GENTOO_PORTAGE_EPREFIX@/etc/profile";
  19. +const char e_suidprofile[] = "@GENTOO_PORTAGE_EPREFIX@/etc/suid_profile";
  20. #if SHOPT_SYSRC
  21. -const char e_sysrc[] = "/etc/ksh.kshrc";
  22. +const char e_sysrc[] = "@GENTOO_PORTAGE_EPREFIX@/etc/ksh.kshrc";
  23. #endif
  24. #if SHOPT_BASH
  25. #if SHOPT_SYSRC
  26. -const char e_bash_sysrc[] = "/etc/bash.bashrc";
  27. +const char e_bash_sysrc[] = "@GENTOO_PORTAGE_EPREFIX@/etc/bash/bashrc";
  28. #endif
  29. const char e_bash_rc[] = "$HOME/.bashrc";
  30. const char e_bash_login[] = "$HOME/.bash_login";
  31. const char e_bash_logout[] = "$HOME/.bash_logout";
  32. const char e_bash_profile[] = "$HOME/.bash_profile";
  33. #endif
  34. -const char e_crondir[] = "/usr/spool/cron/atjobs";
  35. +const char e_crondir[] = "@GENTOO_PORTAGE_EPREFIX@/usr/spool/cron/atjobs";
  36. const char e_prohibited[] = "login setuid/setgid shells prohibited";
  37. #if SHOPT_SUID_EXEC
  38. - const char e_suidexec[] = "/etc/suid_exec";
  39. + const char e_suidexec[] = "@GENTOO_PORTAGE_EPREFIX@/etc/suid_exec";
  40. #endif /* SHOPT_SUID_EXEC */
  41. const char hist_fname[] = "/.sh_history";
  42. const char e_dot[] = ".";