]> diplodocus.org Git - nmh/blob - docs/historical/mh-6.8.5/miscellany/patch-2.0.12u8/ChangeLog
ap: Fix write past end of addrs[] array.
[nmh] / docs / historical / mh-6.8.5 / miscellany / patch-2.0.12u8 / ChangeLog
1 Tue Sep 15 00:36:15 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
2
3 * patchlevel.h: PATCHLEVEL 12u8.
4
5 Mon Sep 14 22:01:23 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
6
7 * Makefile.SH: Add uninstall target. Simplify install target.
8
9 * util.c (fatal, pfatal): Add some asterisks to make fatal
10 messages stand out more.
11
12 Tue Aug 25 22:13:36 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
13
14 * patch.c (main, get_some_switches), common.h, inp.c (plan_a,
15 plan_b), pch.c (there_is_another_aptch): Add -t option,
16 similar to -f.
17
18 Mon Jul 27 11:27:07 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
19
20 * inp.c (plan_a, util.c (fetchname): Use a macro to simplify code.
21 * common.h: Define SCCSDIFF and RCSDIFF.
22 * inp.c (plan_a): Use them to make sure it's safe to check out
23 the default RCS or SCCS version.
24 From Paul Eggert.
25
26 Wed Jul 22 14:37:08 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
27
28 * patch.man: Use the standard comment syntax -- '\" -- instead
29 of '''.
30
31 Tue Jul 21 15:26:01 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
32
33 * Configure: Add /etc /usr/lib /lib to pth.
34
35 Mon Jul 20 14:10:32 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
36
37 * util.h: Declare basename.
38 * inp.c (plan_a), util.c (fetchname): Use it to isolate the
39 leading path when testing for RCS and SCCS files.
40
41 Sat Jul 11 18:03:26 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
42
43 * Configure: Use the user's PATH and build pth from it.
44
45 Fri Jul 10 16:03:23 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
46
47 * Configure: Change cc -S to cc -c and tr '[ - ]' '[\012-\012]'
48 to tr ' ' '\012' for AIX 3.2.
49 From chip@tct.com (Chip Salzenberg).
50
51 * util.c (makedirs): Only make the directories that don't exist.
52 From chip@tct.com (Chip Salzenberg).
53
54 Wed Jul 8 01:21:15 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
55
56 * util.c (fatal, pfatal): Print "patch: " before message.
57 * pch.c, inp.c, patch.c, util.c: Remove "patch: " from the
58 callers that had it.
59
60 * util.c (pfatal): New function.
61 * util.h: Declare it and pfatal[1-4] macros.
62 * various files: Use it instead of fatal where appropriate.
63
64 * Configure: Make /usr/local/man/man1 the first choice for the
65 man pages.
66
67 * patch.c (main): Open ofp after checking for ed script.
68 Close ofp and rejfp before trying plan B.
69 From epang@sfu.ca (Eugene Pang).
70
71 * backupfile.h: Declare get_version.
72
73 * Move decls of rindex and popen to common.h.
74
75 * common.h (myuid): New variable.
76 * patch.c (main): Initialize it.
77 * inp.c (myuid): Function removed.
78 (plan_a): Use the variable, not the function.
79
80 * patch.c: Reinstate -E option.
81
82 Tue Jul 7 23:19:28 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
83
84 * inp.c (myuid): New function.
85 (plan_a): Call it. Optimize stat calls. Be smarter about
86 detecting checked out RCS and SCCS files.
87 From Paul Eggert (eggert@twinsun.com).
88
89 * inp.c, util.c, patch.c: Don't bother checking for stat() > 0.
90
91 Mon Jul 6 13:01:52 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
92
93 * version.c (version): Don't print the RCS stuff, since we're
94 not updating it regularly.
95
96 * patch.c (get_some_switches): Make the usage message more accurate.
97
98 * patchlevel.h: PATCHLEVEL 12u7.
99
100 * Makefile.SH (dist): New target.
101 Makedist: File removed.
102
103 * inp.c (plan_a): Check whether the user can write to the
104 file, not whether anyone can write to the file.
105
106 Sat Jul 4 00:06:58 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
107
108 * inp.c (plan_a): Try to check out read-only files from RCS or SCCS.
109
110 * util.c (move_file): If backing up by linking fails, try copying.
111 From cek@sdc.boeing.com (Conrad Kimball).
112
113 * patch.c (get_some_switches): Eliminate -E option; always
114 remove empty output files.
115
116 * util.c (fetchname): Only undo slash removal for relative
117 paths if -p was not given.
118
119 * Makefile.sh: Add mostlyclean target.
120
121 Fri Jul 3 23:48:14 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
122
123 * util.c (fetchname): Accept whitespace between `Index:' and filename.
124 Also plug a small memory leak for diffs against /dev/null.
125 From eggert@twinsun.com (Paul Eggert).
126
127 * common.h: Don't define TRUE and FALSE if already defined.
128 From phk@data.fls.dk (Poul-Henning Kamp).
129
130 Wed Apr 29 10:19:33 1992 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu)
131
132 * backupfile.c (get_version): Exit if given a bad backup type.
133
134 Fri Mar 27 09:57:14 1992 Karl Berry (karl at hayley)
135
136 * common.h (S_ISDIR, S_ISREG): define these.
137 * inp.c (plan_a): use S_ISREG, not S_IFREG.
138 * util.c (fetchname): use S_ISDIR, not S_IFDIR.
139
140 Mon Mar 16 14:10:42 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
141
142 * patchlevel.h: PATCHLEVEL 12u6.
143
144 Sat Mar 14 13:13:29 1992 David J. MacKenzie (djm at frob.eng.umd.edu)
145
146 * Configure, config.h.SH: Check for directory header and unistd.h.
147
148 * patch.c (main): If -E was given and output file is empty after
149 patching, remove it.
150 (get_some_switches): Recognize -E option.
151
152 * patch.c (copy_till): Make garbled output an error, not a warning
153 that doesn't change the exit status.
154
155 * common.h: Protect against system declarations of malloc and realloc.
156
157 * Makedist: Add backupfile.[ch].
158
159 * Configure: Look for C library where NeXT and SVR4 put it.
160 Look in /usr/ucb after /bin and /usr/bin for utilities,
161 and look in /usr/ccs/bin, to make SVR4 happier.
162 Recognize m68k predefine.
163
164 * util.c (fetchname): Test of stat return value was backward.
165 From csss@scheme.cs.ubc.ca.
166
167 * version.c (version): Exit with status 0, not 1.
168
169 * Makefile.SH: Add backupfile.[cho].
170 * patch.c (main): Initialize backup file generation.
171 (get_some_switches): Add -V option.
172 * common.h, util,c, patch.c: Replace origext with simple_backup_suffix.
173 * util.c (move_file): Use find_backup_file_name.
174
175 Tue Dec 3 11:27:16 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
176
177 * patchlevel.h: PATCHLEVEL 12u5.
178
179 * Makefile.SH: Change clean, distclean, and realclean targets a
180 little so they agree with the GNU coding standards.
181 Add Makefile to addedbyconf, so distclean removes it.
182
183 * Configure: Recognize Domain/OS C library in /lib/libc.
184 From mmuegel@mot.com (Michael S. Muegel).
185
186 * pch.c: Fixes from Wayne Davison:
187 Patch now accepts no-context context diffs that are
188 specified with an assumed one line hunk (e.g. "*** 10 ****").
189 Fixed a bug in both context and unified diff processing that would
190 put a zero-context hunk in the wrong place (one line too soon).
191 Fixed a minor problem with p_max in unified diffs where it would
192 set p_max to hunkmax unnecessarily (the only adverse effect was to
193 not supply empty lines at eof by assuming they were truncated).
194
195 Tue Jul 2 03:25:51 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
196
197 * Configure: Check for signal declaration in
198 /usr/include/sys/signal.h as well as /usr/include/signal.h.
199
200 * Configure, common.h, config.h.SH: Comment out the sprintf
201 declaration and tests to determine its return value type. It
202 conflicts with ANSI C systems' prototypes in stdio.h and the
203 return value of sprintf is never used anyway -- it's always cast
204 to void.
205
206 Thu Jun 27 13:05:32 1991 David J. MacKenzie (djm at churchy.gnu.ai.mit.edu)
207
208 * patchlevel.h: PATCHLEVEL 12u4.
209
210 Thu Feb 21 15:18:14 1991 David J. MacKenzie (djm at geech.ai.mit.edu)
211
212 * pch.c (another_hunk): Fix off by 1 error. From
213 iverson@xstor.com (Tim Iverson).
214
215 Sun Jan 20 20:18:58 1991 David J. MacKenzie (djm at geech.ai.mit.edu)
216
217 * Makefile.SH (all): Don't make a dummy `all' file.
218
219 * patchlevel.h: PATCHLEVEL 12u3.
220
221 * patch.c (nextarg): New function.
222 (get_some_switches): Use it, to prevent dereferencing a null
223 pointer if an option that takes an arg is not given one (is last
224 on the command line). From Paul Eggert.
225
226 * pch.c (another_hunk): Fix from Wayne Davison to recognize
227 single-line hunks in unified diffs (with a single line number
228 instead of a range).
229
230 * inp.c (rev_in_string): Don't use `s' before defining it. From
231 Wayne Davison.
232
233 Mon Jan 7 06:25:11 1991 David J. MacKenzie (djm at geech.ai.mit.edu)
234
235 * patchlevel.h: PATCHLEVEL 12u2.
236
237 * pch.c (intuit_diff_type): Recognize `+++' in diff headers, for
238 unified diff format. From unidiff patch 1.
239
240 Mon Dec 3 00:14:25 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
241
242 * patch.c (get_some_switches): Make the usage message more
243 informative.
244
245 Sun Dec 2 23:20:18 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
246
247 * Configure: When checking for C preprocessor, look for 'abc.*xyz'
248 instead of 'abc.xyz', so ANSI C preprocessors work.
249
250 * Apply fix for -D from ksb@mentor.cc.purdue.edu (Kevin Braunsdorf).
251
252 * Apply unidiff patches from davison@dri.com (Wayne Davison).
253
254 Wed Mar 7 23:47:25 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
255
256 * pch.c: Call malformed instead of goto malformed
257 (just allows easier debugging).
258
259 Tue Jan 23 21:27:00 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
260
261 * common.h (TMP*NAME): Make these char *, not char [].
262 patch.c (main): Use TMPDIR (if present) to set TMP*NAME.
263 common.h: Declare getenv.
264
265 Sun Dec 17 17:29:48 1989 Jim Kingdon (kingdon at hobbes.ai.mit.edu)
266
267 * patch.c (reverse_flag_specified): New variable.
268 (get_some_switches, reinitialize_almost_everything): Use it.
269 \f
270 Local Variables:
271 mode: indented-text
272 left-margin: 8
273 version-control: never
274 end: