preserve-dir.patch 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. diff -Naur ex-050325.ori/ex.1 ex-050325/ex.1
  2. --- ex-050325.ori/ex.1 2005-02-17 07:39:36.000000000 -0500
  3. +++ ex-050325/ex.1 2011-02-01 16:21:51.496666674 -0500
  4. @@ -1950,7 +1950,7 @@
  5. .B /var/tmp/Rx\fInnnnnnnnnn\fP
  6. named buffer temporary
  7. .TP
  8. -.B /var/preserve
  9. +.B /var/lib/ex
  10. preservation directory
  11. .SH DOCUMENTATION
  12. The document
  13. diff -Naur ex-050325.ori/expreserve.c ex-050325/expreserve.c
  14. --- ex-050325.ori/expreserve.c 2005-03-04 07:44:46.000000000 -0500
  15. +++ ex-050325/expreserve.c 2011-02-01 16:22:06.583333342 -0500
  16. @@ -272,7 +272,7 @@
  17. #ifdef notdef
  18. char pattern[] = "/usr/preserve/Exaa`XXXXX";
  19. #else
  20. -char pattern[] = "/var/preserve/Exa`XXXXXXXXXX";
  21. +char pattern[] = "/var/lib/ex/Exa`XXXXXXXXXX";
  22. #endif
  23. /*
  24. @@ -296,7 +296,7 @@
  25. timestamp = ctime(&time);
  26. timestamp[16] = 0; /* blast from seconds on */
  27. putenv("MAILRC=/dev/null");
  28. - sprintf(cmd, "/bin/mail %s", pp->pw_name);
  29. + sprintf(cmd, "/usr/bin/mail %s", pp->pw_name);
  30. setuid(getuid());
  31. mf = popen(cmd, "w");
  32. if (mf == NULL)
  33. diff -Naur ex-050325.ori/exrecover.c ex-050325/exrecover.c
  34. --- ex-050325.ori/exrecover.c 2005-03-04 07:44:46.000000000 -0500
  35. +++ ex-050325/exrecover.c 2011-02-01 16:21:51.496666674 -0500
  36. @@ -167,7 +167,7 @@
  37. #ifdef notdef
  38. char mydir[] = "/usr/preserve";
  39. #else
  40. -char mydir[] = "/var/preserve";
  41. +char mydir[] = "/var/lib/ex";
  42. #endif
  43. /*
  44. diff -Naur ex-050325.ori/Makefile ex-050325/Makefile
  45. --- ex-050325.ori/Makefile 2005-03-24 18:50:09.000000000 -0500
  46. +++ ex-050325/Makefile 2011-02-01 16:21:51.496666674 -0500
  47. @@ -83,7 +83,7 @@
  48. BINDIR = $(PREFIX)/bin
  49. LIBEXECDIR = $(PREFIX)/libexec
  50. MANDIR = $(PREFIX)/share/man
  51. -PRESERVEDIR = /var/preserve
  52. +PRESERVEDIR = /var/lib/ex
  53. #
  54. # DESTDIR is prepended to the installation paths. It is mostly useful
  55. diff -Naur ex-050325.ori/vi.1 ex-050325/vi.1
  56. --- ex-050325.ori/vi.1 2005-02-17 07:39:36.000000000 -0500
  57. +++ ex-050325/vi.1 2011-02-01 16:21:51.496666674 -0500
  58. @@ -979,7 +979,7 @@
  59. .B /var/tmp/Rx\fInnnnnnnnnn\fP
  60. named buffer temporary
  61. .TP
  62. -.B /var/preserve
  63. +.B /var/lib/ex
  64. preservation directory
  65. .SH SEE ALSO
  66. ex(1),
  67. --- ex-050325.original/ex.1 2012-01-27 20:43:00.602119283 +0100
  68. +++ ex-050325/ex.1 2012-01-27 20:47:24.535436516 +0100
  69. @@ -1932,10 +1932,10 @@
  70. Determines the terminal type.
  71. .SH FILES
  72. .TP
  73. -.B /usr/libexec/expreserve
  74. +.B /usr/lib/ex/expreserve
  75. preserve command
  76. .TP
  77. -.B /usr/libexec/exrecover
  78. +.B /usr/lib/ex/exrecover
  79. recover command
  80. .TP
  81. .B /etc/termcap
  82. --- ex-050325.original/vi.1 2012-01-27 20:43:00.602119283 +0100
  83. +++ ex-050325/vi.1 2012-01-27 20:46:33.815439611 +0100
  84. @@ -961,10 +961,10 @@
  85. Determines the terminal type.
  86. .SH FILES
  87. .TP
  88. -.B /usr/libexec/expreserve
  89. +.B /usr/lib/ex/expreserve
  90. preserve command
  91. .TP
  92. -.B /usr/libexec/exrecover
  93. +.B /usr/lib/ex/exrecover
  94. recover command
  95. .TP
  96. .B /etc/termcap