/contrib/cvs/src/ChangeLog

https://bitbucket.org/freebsd/freebsd-head/ · #! · 9664 lines · 6783 code · 2881 blank · 0 comment · 0 complexity · 121f3c566953393dafe8cd5be2bc2480 MD5 · raw file

Large files are truncated click here to view the full file

  1. 2008-03-10 Mark D. Baushke <mdb@gnu.org>
  2. * mkmodules.c, parseinfo.c: Update copyright.
  3. * parseinfo.c (parse_config): Add support for new
  4. "IgnoreUnknownConfigKeys" configuration key.
  5. * mkmodules.c (config_contents): Add text about the
  6. "IgnoreUnknownConfigKeys" option.
  7. * sanity.sh (config): Test that IgnoreUnknownConfigKeys=yes works.
  8. 2008-01-30 Derek R. Price <derek@ximbiot.com>
  9. * update.c (join_file): Use local copy to detect deletion conflicts,
  10. as opposed to the base revision. Restore freeing of rev2 to its
  11. original location. Use simpler conflict message.
  12. * sanity.sh: Update to compensate.
  13. 2008-01-29 Derek R. Price <derek@ximbiot.com>
  14. * update.c (join_file): Remove trace that is no longer needed.
  15. 2008-01-29 Derek R. Price <derek@ximbiot.com>
  16. Paul Edwards <fight.subjugation@gmail.com>
  17. * update.c (join_file): Detect deletion conflicts.
  18. * sanity.sh (join, join4): Adjusted for this fix.
  19. (join8, join9): Add new tests for conflicts.
  20. 2008-01-27 Mark D. Baushke <mdb@gnu.org>
  21. * filesubr.c (xreadlink): s/128/BUFSIZ/ avoid magic numbers.
  22. * client.c (start_rsh_server): Use CVS_SSH for the :extssh:
  23. method or fall back to "ssh" as set using the --with-ssh flag to
  24. configure.
  25. * client.h, log.c, main.c, recurse.c, root.c: Update copyright for
  26. 2008.
  27. 2008-01-24 Mark D. Baushke <mdb@gnu.org>
  28. * log.c (cvslog): New -n option to revert the -N switch.
  29. (log_usage): Add -n to the help string.
  30. * main.c (cmds[]): Add "blame" as a synonym for the
  31. "annotate" command.
  32. * sanity.sh (cvs-log): New tests for 'cvs log -N -n' validation.
  33. (ann-10w1blame): Test the 'cvs blame' synonym for annotate.
  34. (Patch suggested by "David O'Brien" <obrien@FreeBSD.org>)
  35. * edit.c (notify_check): Rename to...
  36. (cvs_notify_check): ...this to avoid Mac OSX symbol conflicts.
  37. * client.h, edit.h, recurse.c: Change all references.
  38. * client.c (start_rsh_server): Use RSH_DFLT not a hardcoded "rsh"
  39. * root.c (parse_cvsroot): Fix parsing for the :extssh: method.
  40. * sanity.sh (expr_set_DASHDASH): Fix for non-POSIX expr
  41. implementations.
  42. (CVSROOTDIR): Use 'cvsrootdir' instead of 'cvsroot' to
  43. avoid problems on case preserving and/or case insensitive
  44. filesystems (e.g., HFS+).
  45. (CVSROOT_DIRNAME): Use ${TESTDIR}/${CVSROOTDIR} instead of
  46. ${TESTDIR}/cvsroot to avoid filesystem case sensitivity problems.
  47. (crerepos-extssh): Clone of crerepos tests, but use the :extssh:
  48. method.
  49. 2007-12-19 Larry Jones <lawrence.jones@siemens.com>
  50. * client.c, import.c, lock.c, login.c, mkmodules.c, modules.c,
  51. rcs.c, server.c: Fix gcc -Wall warnings.
  52. 2007-12-16 Larry Jones <lawrence.jones@siemens.com>
  53. * rcs.c (HAVE_MMAP): Fall back to stdio if mmap fails.
  54. 2007-12-13 Larry Jones <lawrence.jones@siemens.com>
  55. * rcs.c (rcsbuf_ftell): Avoid potential overflow.
  56. 2007-12-12 Larry Jones <lawrence.jones@siemens.com>
  57. * vers_ts.c (time_stamp): Add warnings for [l]stat failures
  58. other than no such file.
  59. 2007-08-26 Derek Price <derek@ximbiot.com>
  60. * mkmodules.c (in_root): Rename to...
  61. (in_repository): ...this.
  62. 2007-08-26 Larry Jones <lawrence.jones@ugs.com>
  63. * mkmodules.c (in_root, init): Unmix declarations and code.
  64. 2007-08-22 Derek Price <derek@ximbiot.com>
  65. * add.c (add): Check last component of argument paths instead of the
  66. entire argument.
  67. * sanity.sh (add-restricted): Test indirect paths to `CVS' dir with
  68. add.
  69. * server.c (serve_init): Remove unnecessary argument to printf style
  70. function.
  71. * mkmodules.c (in_root): New function.
  72. (init): Verify that new roots are not created inside others.
  73. * sanity.sh (init-3): New test for same.
  74. 2007-08-16 Derek Price <derek@ximbiot.com>
  75. * root.c (root_allow_used): New function and...
  76. * root.h (root_allow_used): ...its prototype.
  77. * server.c (serve_root): Backport --allow-root test for `cvs server'.
  78. * sanity.sh (server2-5, server2-6): New tests for the above.
  79. 2007-06-18 Derek Price <derek@ximbiot.com>
  80. * client.c (send_repository): Don't attempt to send metadata from CVS
  81. subdirectories when importing.
  82. 2007-06-15 Derek Price <derek@ximbiot.com>
  83. * import.c (import): Check more carefully for files and directories
  84. named "CVS".
  85. * sanity.sh (import-1b): New test for same.
  86. (import-2): Test files named "CVS", in addition to directories.
  87. 2007-05-22 Larry Jones <lawrence.jones@ugs.com>
  88. * rcs.c (RCS_fully_parse): Include revision in error message.
  89. 2007-05-07 Derek Price <derek@ximbiot.com>
  90. * mkmodules.c (init): Assert that the server is not active.
  91. * server.c (serve_init): Send error message when the init command is
  92. received from a client.
  93. * sanity.sh (*): Avoid using remote init.
  94. (skip_always, localonly, restore_adm): New convenience functions.
  95. 2007-03-08 Larry Jones <lawrence.jones@ugs.com>
  96. * rcs.c (findmagictag): Cast node->data before doing arithmetic
  97. since it's now (void *).
  98. 2007-03-05 Larry Jones <lawrence.jones@ugs.com>
  99. * rcs.c (RCS_delete_revs): When checking for tagged revisions,
  100. include magic branch tags.
  101. 2007-03-01 Larry Jones <lawrence.jones@ugs.com>
  102. * import.c (import_descend_dir): Correct error message.
  103. * sanity.sh (pserver-3a): New test.
  104. 2006-09-14 Derek Price <derek@ximbiot.com>
  105. * sanity.sh (server3, client2): New tests.
  106. 2006-09-07 Derek Price <derek@ximbiot.com>
  107. [bug #17560]
  108. * rcs.c (apply_rcs_changes): Improve comments. Restore repaired error
  109. handling.
  110. 2006-09-06 Larry Jones <lawrence.jones@ugs.com>
  111. * rcs.c (apply_rcs_changes): Improve linked list handling. Remove
  112. unused variables and unreachable error handling code. Avoid unneeded
  113. dynamic allocation of temp linevector. Minor stylistic code clean up.
  114. 2006-09-06 Derek Price <derek@ximbiot.com>
  115. [bug #17560]
  116. * rcs.c (apply_rcs_changes): Improve header block comment. Clean up
  117. unused linevector on non-fatal error.
  118. 2006-09-06 Derek Price <derek@ximbiot.com>
  119. [bug #17560]
  120. * rcs.c (apply_rcs_changes): Remove an unecessary memcpy. Avoid some
  121. other processing on error.
  122. (linevector_delete): Remove - it's no longer used.
  123. 2006-09-06 Mark D. Baushke <mdb@gnu.org>
  124. [bug #17560]
  125. * rcs.c (apply_rcs_changes): Fix the merge algorithm from O(n^2)
  126. to O(n).
  127. (Based on a patch submitted by "Michael J. Smith"
  128. <msmith@ideorlando.org>)
  129. 2006-08-28 Derek Price <derek@ximbiot.com>
  130. * recurse.c (do_recursion): Remove misguided assertion.
  131. * sanity.sh (dottedroot-3): Add test for the above.
  132. (Thanks to report from Paul Eggert <eggert@CS.UCLA.EDU>.)
  133. [bug #17168]
  134. * classify.c (Classify_File): Use T_PATCH for changed keywords instead
  135. of T_CHECKOUT to conserver bandwidth. Don't sticky check when marking
  136. files for update anyhow.
  137. * sanity.sh: Update to compensate (s/^U /[UP] /).
  138. 2006-08-25 Derek Price <derek@ximbiot.com>
  139. [bug #17168]
  140. * classify.c (Classify_file): Mark files with potential keyword
  141. substitution changes as needing update.
  142. * sanity.sh: Update to compensate.
  143. (keyword, keywordname, serverpatch): Update to compensate, removing
  144. the last few "checksum failed" tests.
  145. * classify.c (Classify_File): Remove hacks which worked around checksum
  146. failures from bug #17032.
  147. 2006-08-24 Derek Price <derek@ximbiot.com>
  148. [bug #17032]
  149. * update.c (patch_file): Correctly recreate client working files
  150. containing the RCS `Name' keyword before generating patches.
  151. * sanity.sh (keyword-23r): Merge with local case to compensate.
  152. 2006-08-17 Larry Jones <lawrence.jones@ugs.com>
  153. * hash.h: Rename structs node and list to hashnode and hashlist
  154. to avoid name clashes.
  155. 2006-07-25 Mark D. Baushke <mdb@gnu.org>
  156. * login.c (free_cvs_password): New function to control freeing of
  157. the static get_cvs_passwd() returned storage.
  158. (login): Call it.
  159. * cvs.h (free_cvs_password): Add prototype for it.
  160. * client.c (auth_server): Call it.
  161. [Alter the previous NetBSD coverity cid-3404 patch.]
  162. 2006-07-11 Larry Jones <lawrence.jones@ugs.com>
  163. * log.c (log_usage): Fix misleading description of -b (it selects
  164. revisions on the default branch *in addition to* revisions selected
  165. with -r).
  166. 2006-06-29 Derek Price <derek@ximbiot.com>
  167. * client.c (is_arg_a_parent_or_listed_dir): Strip trailing slashes from
  168. dir name defore searching for it. Partially addresses TODO #205.
  169. * sanity.sh (trailingslashes): Update to compensate.
  170. 2006-06-28 Derek Price <derek@ximbiot.com>
  171. [bug #16961]
  172. * login.c (get_cvs_password): Return copy of global variable.
  173. (Patch from <mbarabas@redhat.com>.)
  174. 2006-06-23 Larry Jones <lawrence.jones@ugs.com>
  175. * server.c (do_cvs_command): Remove unused variable.
  176. 2006-06-22 Larry Jones <lawrence.jones@ugs.com>
  177. * mkmodules.c (modules_contents): Remove defunct -i option.
  178. 2006-06-10 Derek Price <derek@ximbiot.com>
  179. * sanity.sh (conflicts4): Don't expect specific file permissions. Use
  180. $PLUS.
  181. 2006-06-08 Derek Price <derek@ximbiot.com>
  182. * sanity.sh (conflicts4): Test that the client honors Empty-conflicts.
  183. * server.c (requests): Add "Empty-conflicts" marker.
  184. * client.c (send_fileproc): Send contents of all files with conflicts
  185. unless the server can handle the conflict marker in the Entry.
  186. * sanity.sh (conflicts4): New tests.
  187. (Original patch from Mark D. Baushke <mdb@gnu.org>.)
  188. 2006-06-07 Mark D. Baushke <mdb@gnu.org>
  189. * modules.c (my_module): Remove unused variable xvalue.
  190. [Fixes NetBSD coverity cid-705.]
  191. 2006-05-31 Mark D. Baushke <mdb@gnu.org>
  192. * add.c (add): Fix memory leak.
  193. [Fixes NetBSD coverity cid-3751.]
  194. (add_directory): Fix memory leak.
  195. [Fixes NetBSD coverity cid-3640.]
  196. * checkin.c (Checkin): Avoid possible NULL dereference.
  197. [Fixes NetBSD coverity cid-2425.]
  198. * client.c (auth_server): Fix memory leak.
  199. [Fixes NetBSD coverity cid-3404.]
  200. * commit.c (remove_file): Fix memory leak.
  201. [Fixes NetBSD coverity cid-3752.]
  202. * rcs.c (RCS_checkin): Add assert (tip).
  203. [Fixes NetBSD coverity cid-2424.]
  204. 2006-05-26 Mark D. Baushke <mdb@gnu.org>
  205. * add.c (add): Do not leak memory.
  206. [Fixes NetBSD coverity cid-2199.]
  207. * edit.c (onoff_fileproc): Do not leak memory.
  208. [Fixes NetBSD coverity cid-2201.]
  209. * edit.c (onoff_filesdoneproc): Do not leak memory.
  210. [Fixes NetBSD coverity cid-2202.]
  211. * lock.c (readers_exist): Add assert (lockdir).
  212. [Fixes NetBSD coverity cid-2411.]
  213. * rcs.c (RCS_findlock_or_tip): Do not leak memory.
  214. [Fixes NetBSD coverity cid-2198.]
  215. * rcs.c (RCS_getdate): Avoid possible NULL dereference.
  216. [Fixes NetBSD coverity cid-2412.]
  217. * server.c (serve_sticky): Do not leak file descriptors.
  218. [Fixes NetBSD coverity cid-2197.]
  219. * server.c (do_cvs_command): Do not leak memory.
  220. [Fixes NetBSD coverity cid-2204.]
  221. * tag.c (add_to_val_tags): Do not leak memory.
  222. [Fixes NetBSD coverity cid-2071.]
  223. 2006-05-25 Derek Price <derek@ximbiot.com>
  224. * client.c (start_rsh_server): Default rsh client to RSH_DFLT. Remove
  225. verbose comment attempting to justify the previous default.
  226. 2006-05-24 Larry Jones <lawrence.jones@ugs.com>
  227. * sanity.sh: Add -v|--verbose option to echo test names. Clean
  228. up help message.
  229. Remove val-tags files for cleanup instead of truncating since the
  230. truncation code doesn't work right on Solaris. Always use -f when
  231. removing val-tags.
  232. 2006-05-22 Derek Price <derek@ximbiot.com>
  233. * rcs.c (RCS_reparsercsfile, RCS_fully_parse, RCS_checkout, RCS_deltas,
  234. RCS_getdeltatext, RCS_copydeltas): Verify input revision numbers.
  235. (rcs6): Update to compensate.
  236. * sanity.sh (rcs6): New test.
  237. 2006-05-16 Derek Price <derek@ximbiot.com>
  238. * main.c: Update copyright for 2006.
  239. 2006-05-12 Mark D. Baushke <mdb@gnu.org>
  240. * log.c (log_expand_revlist): Add assert (r->first). It should
  241. only be possible for both r->first == NULL && r->last == NULL
  242. which would have been handled.
  243. [Fixes NetBSD coverity cid-1063.]
  244. * server.c (do_cvs_command): Protect close (dev_null_fd) against
  245. invalid fd value in error_exit.
  246. [Fixes NetBSD coverity cid-1307.]
  247. * rcs.c (RCS_isdead): Assert that the first argument is not NULL.
  248. [Fixes NetBSD coverity cid-1058.]
  249. * commit.c (checkaddfile): Do not dereference NULL on call to
  250. error().
  251. [Fixes NetBSD coverity cid-1061.]
  252. * log.c (cvslog): Assert p->start && p->end instead of masking the
  253. problem.
  254. * server.c (server_updated): Assert findnode_fn results instead of
  255. masking the problem.
  256. * add.c (add_directory): Revert previous change. The xstrdup()
  257. function already deals a NULL argument.
  258. * client.c (handle_mt): Ditto.
  259. * entries.c (Entnode_Create): Ditto.
  260. (Entries_Open): Ditto.
  261. * logmsg.c (fmt_proc): Ditto.
  262. * vers_ts.c (Version_TS): Ditto.
  263. 2006-05-11 Mark D. Baushke <mdb@gnu.org>
  264. * add.c (add_directory): Protect tag from NULL dereference.
  265. [Fixes NetBSD cid-1054.]
  266. * client.c (handle_mt): Deal with missing text argument.
  267. [Fixes NetBSD cid-924.]
  268. * entries.c (Entnode_Create): Protect date, tag and ts_conflict
  269. from possible NULL dereference.
  270. [Fixes NetBSD coverity cid-994, cid-995, cid-1055, cid-1057.]
  271. * entries.c (Entries_Open): Protect dirtag and dirdate from
  272. possible NULL dereference.
  273. [Fixes NetBSD coverity cid-996.]
  274. * log.c (cvslog): Validate start and end args to
  275. date_to_internet().
  276. [Fixes NetBSD coverity cid-2427 and cid-2428.]
  277. * logmsg.c (fmt_proc): Protect li->tag from NULL dereference.
  278. [Fixes NetBSD coverity cid-997.]
  279. * vers_ts.c (Version_TS): Protect tag and vers_ts->tag from NULL
  280. dereference.
  281. [Fixes NetBSD coverity cid-1053.]
  282. 2006-05-04 Mark D. Baushke <mdb@gnu.org>
  283. * filesubr.c (cvs_temp_file): Avoid keeping pointers to free()'d
  284. storage laying around.
  285. * commit.c (commit): Handle possible NULL filename values
  286. returned from cvs_temp_file().
  287. * filesubr.c (cvs_temp_name): Ditto.
  288. * import.c (import): Ditto.
  289. * login.c (password_entry_operation): Ditto.
  290. * logmsg.c (do_verify): Ditto.
  291. * patch.c (patch_fileproc): Ditto.
  292. [Fixes NetBSD coverity cid-2545.]
  293. * buffer.c (packetizing_buffer_output): Initialize outdata.
  294. [Fixes NetBSD coverity cid-2474.]
  295. * server.c (server_updated): Check for NULL return from
  296. findnode_fn(). [Fixes NetBSD coverity cid-1352.]
  297. 2006-04-19 Larry Jones <lawrence.jones@ugs.com>
  298. * history.c (sort_order): Back out previous change - not needed.
  299. 2006-04-15 Larry Jones <lawrence.jones@ugs.com>
  300. * history.c (sort_order): Add prototype.
  301. * server.c (template_proc): Add prototype and make args const.
  302. * update.c (RegisterMerge): Make static to match prototype.
  303. 2006-04-07 Derek Price <derek@ximbiot.com>
  304. * client.c (strto_file_size): New function which checks for errors when
  305. parsing protocol input.
  306. (read_counted_file, update_entries, handle_mbinary): Use new function.
  307. Remove FIXME.
  308. (Thanks to a report from Brendan Harrison
  309. <brendan.harrison@klocwork.com>.)
  310. * client.c (send_a_repository): Add assertion.
  311. (Thanks to an incorrect report from Brendan Harrison
  312. <brendan.harrison@klocwork.com>.)
  313. 2006-04-06 Derek Price <derek@ximbiot.com>
  314. * filesubr.c (last_component, expand_wild), rcs.c (RCS_deltas,
  315. RCS_rewrite), server.c (server_checked_in): Add assertions.
  316. (Thanks to an incorrect report from Brendan Harrison
  317. <brendan.harrison@klocwork.com>.)
  318. 2006-03-31 Mark D. Baushke <mdb@gnu.org>
  319. * cvsrc.c (read_cvsrc): Deal with \r\n (DOS) line endings in
  320. .cvsrc files.
  321. 2006-03-07 Derek Price <derek@ximbiot.com>
  322. * tag.c (rtag_proc): Search the Attic when -F is used.
  323. * sanity.sh (tests): Run death-rtag.
  324. (death-rtag): Expect success.
  325. * sanity.sh (death-rtag): Add failing force tag move test.
  326. 2006-03-06 Derek Price <derek@ximbiot.com>
  327. * tag.c (rtag_proc): Always search in the attic when -r is used.
  328. * sanity.sh (death-rtag): New test.
  329. (Original report from C. Michael Pilato <cmpilato@collab.net>.)
  330. 2006-03-01 Derek Price <derek@ximbiot.com>
  331. * sanity.sh: Set MALLOC_CHECK_ in hopes of exposing common memory
  332. errors when CVS is linked with glibc 2.x.
  333. 2006-02-27 Derek Price <derek@ximbiot.com>
  334. * lock.c (internal_lock): Back out previous change, we don't change
  335. user visible output on stable unless absolutely necessary.
  336. * lock.c (internal_lock): Improve error message.
  337. 2006-02-26 Derek Price <derek@ximbiot.com>
  338. * client.c (call_in_directory): Remove unneeded code.
  339. * sanity.sh (toplevel-12): Compensate by failing to expect a redundant
  340. error message.
  341. 2006-02-24 Mark D. Baushke <mdb@gnu.org>
  342. * client.c (gzip_level): Move to...
  343. * main.c (gzip_level): ...here.
  344. (main): Revert previous change in '-z' argument processing and
  345. remove CLIENT_SUPPORT ifdef/endif.
  346. * sanity.h (crerepos-6a): Deal with --disable-client output.
  347. * main.c (main): Validate the gzip compression level for
  348. --disable-client configurations.
  349. 2006-02-13 Derek Price <derek@ximbiot.com>
  350. * server.c (do_cvs_command): Skip server_cleanup in the child process.
  351. * sanity.sh (sshstdio-6): Rewrite using more portable sed script.
  352. 2006-02-02 Derek Price <derek@ximbiot.com>
  353. * sanity.sh (sshstdio): Attempt to ignore spurious SSH output.
  354. * main.c (main), release.c (release), server.c (do_cvs_command): Always
  355. call the cleanup hooks before exit.
  356. 2006-02-01 Derek Price <derek@ximbiot.com>
  357. * tag.c (add_to_val_tags): When a tag turns out to exist in the db when
  358. it isn't expected, release the lock.
  359. * history.c (save_user, save_file, save_mod, read_hrecs): Avoid
  360. overflow.
  361. 2006-01-30 Derek Price <derek@ximbiot.com>
  362. * server.c (do_cvs_command): Set flow control pipe to blocking mode
  363. before waiting for it to close.
  364. (set_block_fd): New function.
  365. (Original patch from Garrett Rooney <grooney@collab.net>.)
  366. 2006-01-13 Larry Jones <lawrence.jones@ugs.com>
  367. * mkmodules.c (config_contents): Change SystemAuth to yes to match
  368. the default value. Add missing newline in RereadLogAfterVerify.
  369. 2006-01-09 Larry Jones <lawrence.jones@ugs.com>
  370. * commit.c (remove_file): Record correct revision in history file.
  371. (Reported by Chris Reed <cr@progress.com>.)
  372. 2005-12-07 Derek Price <derek@ximbiot.com>
  373. * client.c (start_server), root.c (method_names), root.h (CVSmethod):
  374. Handle :extssh: as a kindness to Eclipse users.
  375. (Suggestion from Joseph P. Skudlarek <Jskud@Jskud.com>.)
  376. 2005-12-06 Mark D. Baushke <mdb@gnu.org>
  377. * buffer.c (stdio_buffer_shutdown): No longer assert() the
  378. fstat(). Use error (0, ...) instead of error (1, ...) to avoid
  379. infinite loops. (patch #4678)
  380. Patch adapted from "Allan L. Bazinet" <allan.bazinet@gmail.com>
  381. 2005-11-10 Larry Jones <lawrence.jones@ugs.com>
  382. * commit.c (commit): Complain about obsolete -n option if not in
  383. server mode.
  384. 2005-11-09 Derek Price <derek@ximbiot.com>
  385. * sanity.sh (pserver-4.2): Accept a "no such sytem user" message when
  386. a root attempt is made.
  387. 2005-09-30 Larry Jones <lawrence.jones@ugs.com>
  388. * expand_path.c (expand_path): Fix memory leaks.
  389. 2005-09-29 Paul Eggert <eggert@CS.UCLA.EDU>
  390. Derek Price <derek@ximbiot.com>
  391. * client.c (handle_m, handle_e): Remove incomplete workaround for
  392. O_NONBLOCK problem; no longer needed because of the fix below.
  393. (start_rsh_server): We need the O_NONBLOCK fix, so pass 'true' to
  394. piped_child to enable the workaround.
  395. * cvs.h (piped_child): New bool argument saying whether O_NONBLOCK
  396. fix is needed. All uses changed.
  397. * run.c (work_around_openssh_glitch): New function.
  398. (piped_child): Use it if the fix is requested. Avoid call call to
  399. vfork with undefined behavior.
  400. 2005-09-26 Conrad T. Pino <Conrad@Pino.com>
  401. * rcs.c: Use "#ifdef HAVE_FSYNC" just like every where else.
  402. 2005-09-25 Derek Price <derek@ximbiot.com>
  403. * rcs.c (rcs_internal_unlockfile): Fsync files before renaming them.
  404. Patch from Rahul Bhargava <rahul@wandisco.com>.
  405. 2005-09-24 Derek Price <derek@ximbiot.com>
  406. * update.c (merge_file): Check for RCS_checkout errors.
  407. 2005-09-23 Larry Jones <lawrence.jones@ugs.com>
  408. * checkout.c (export_usage): Note that -r requires a tag.
  409. 2005-09-22 Larry Jones <lawrence.jones@ugs.com>
  410. * patch.c (patch_usage): Document -k option.
  411. 2005-09-22 Derek Price <derek@ximbiot.com>
  412. * classify.c (Classify_File): If a file had a conflict and the
  413. timestamp hasn't changed, it still has a conflict. Add comment about
  414. how T_MODIFIED could later turn out to have conflict markers and why
  415. it should not be checked in this function.
  416. * client.c (send_fileproc): Don't send contents for files known to have
  417. conflicts unless this is for `cvs diff'.
  418. * commit.c (check_fileproc): T_CONFLICT should be handled like
  419. T_MODIFIED, since force could be requested. Simplify logic since
  420. T_CONFLICT can now be trusted.
  421. * cvs.h (file_has_conflict): Remove proto.
  422. * rcs.c (RCS_Checkout): Comment noexec behavior in header block.
  423. * server.c (serve_unchanged, serve_is_modified): Handle conflicts.
  424. * status.c (status_fileproc): Trust T_CONFLICT to simplify.
  425. * subr.c (file_has_conflict): Removed.
  426. * update.c (update_fileproc): Trust T_CONFLICT.
  427. (RegisterMerge): New function factored from...
  428. (merge_file, join_file): ...these two functions.
  429. * vers_ts.c (time_stamp_server): Handle = conflict timestamps in server
  430. entdata.
  431. * sanity.sh (files-12): Account for slight behavior improvement.
  432. (status, conflicts, mwrap): Account for corrected behavior.
  433. (join-readonly-conflict-10): Correct comment.
  434. (binfiles-con1b): New test for correct behavior.
  435. 2005-09-19 Derek Price <derek@ximbiot.com>
  436. * sanity.sh (modules5-8): Rename...
  437. (modules5-8r): ...to this and comment Mac OS X failure.
  438. Comment Solaris 9 failure below with a `FIXME?' tag.
  439. * sanity.sh: Remove previous hack in favor of setting TESTDIR on
  440. Solaris (and Mac OS X) until problem is solved correctly.
  441. 2005-09-15 Derek Price <derek@ximbiot.com>
  442. * sanity.sh: Use /bin/pwd to verify current dir since Solaris 9 is
  443. sometimes resolving symlinked paths.
  444. 2005-09-14 Derek Price <derek@ximbiot.com>
  445. * edit.c (edit_usage, unedit_usage, editors_usage), watch.c
  446. (watch_usage, watchers_usage): Add quotes and reword for clarity and
  447. consistency.
  448. * edit.c (edit_usage): Add missing syntax. Reword description for
  449. clarity. Mention default behavior.
  450. 2005-09-13 Derek Price <derek@ximbiot.com>
  451. * sanity.sh: Split $username into $username & $username8. Rename
  452. $author as $anyusername.
  453. 2005-09-12 Derek Price <derek@ximbiot.com>
  454. * sanity.sh (binfiles-con1b): Back out accidental addition.
  455. * sanity.sh (username): Cut $username down to 8 characters when longer,
  456. since that is all that appears in output.
  457. 2005-09-07 Derek Price <derek@ximbiot.com>
  458. Close <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=14462>.
  459. * rcs.c (RCS_parse): Free variable *after* using it for the last time.
  460. 2005-09-06 Derek Price <derek@ximbiot.com>
  461. * rcs.c (RCS_putdtree): Remove unused variable.
  462. 2005-09-06 Mark D. Baushke <mdb@gnu.org>
  463. Close <https://savannah.nongnu.org/bugs/?func=detailitem&item_id=14435>.
  464. * rcs.c (RCS_putdtree): Avoid stack overflow which may be
  465. possible with excessive recursive calls to RCS_putdtree().
  466. (Patch from Serg Masyutin.)
  467. 2005-09-03 Derek Price <derek@ximbiot.com>
  468. * add.c (add_usage): Standardize usage message somewhat.
  469. 2005-09-02 Larry Jones <lawrence.jones@ugs.com>
  470. * commit.c (checkaddfile): Improve error messages for lock_RCS failure.
  471. * release.c (release): Improve error message for pclose failure.
  472. * root.h (struct cvsroot_s): Always declare isremote to simplify
  473. other code. Simplify referencing code.
  474. * root.c (new_cvsroot_t): Always initialize isremote.
  475. * server.h: Always declare server_active to simplify other code.
  476. Simplify referencing code.
  477. * server.c: Always define server_active.
  478. 2005-09-01 Derek Price <derek@ximbiot.com>
  479. * main.c, wrapper.c: Update links.
  480. 2005-09-01 Derek Price <derek@ximbiot.com>
  481. * recurse.c: Update bug report email address.
  482. 2005-08-30 Larry Jones <lawrence.jones@ugs.com>
  483. * import.c (import_descend): Lock repository directory during import.
  484. 2005-07-12 Derek Price <derek@ximbiot.com>
  485. * buffer.c, buffer.h, client.h, expand_path.c, history.c, myndbm.h,
  486. release.c: Add copyright notices.
  487. 2005-07-11 Derek Price <derek@ximbiot.com>
  488. * buffer.c, buffer.h, client.h, expand_path.c, history.c, myndbm.h,
  489. release.c: Update license notices.
  490. 2005-06-22 Larry Jones <lawrence.jones@ugs.com>
  491. * vers_ts (Version_TS): Don't allow command line keyword expansion
  492. modes to override binary mode.
  493. * sanity.sh (): Tests for the above.
  494. (Merged from trunk.)
  495. 2005-06-06 Conrad T. Pino <Conrad@Pino.com>
  496. * cvs.h: Reverse patch committed 2005-05-27 by Conrad T. Pino.
  497. * run.c: Reverse patch committed 2005-05-27 by Conrad T. Pino.
  498. 2005-06-02 Derek Price <derek@ximbiot.com>
  499. * zlib.c (compress_buffer_shutdown_input): Don't attempt to read EOF
  500. from the client during shutdown. It might never be sent.
  501. * sanity.sh (abspath2): Test for this.
  502. 2005-05-31 Derek Price <derek@ximbiot.com>
  503. for Alexander Taler <alex@0--0.org>
  504. * rcscmds.c: Change type of call_diff_argc_allocated from int to
  505. size_t, to match the prototype of run_add_arg_p(). This fixes a
  506. bus error in OpenBSD 3.6 sparc64.
  507. 2005-05-27 Conrad T. Pino <Conrad@Pino.com>
  508. * cvs.h: Replace "run_arg" function with "#define run_arg run_add_arg",
  509. add "run_add_arg" prototype, change "piped_child" prototype to be same
  510. as feature branch to reflect "(os2,src,windows-NT)/run.c" changes.
  511. * run.c: Remove "run_arg" to synchronize with "../windows-NT/run.c".
  512. Function "run_add_arg" scope was "static" and is now "extern" scope.
  513. Synchronize "piped_child" function arguments with feature branch.
  514. 2005-05-27 Derek Price <derek@ximbiot.com>
  515. * client.c (send_arg): Make arg const.
  516. (send_option_string): Rename to...
  517. (send_options): ...this and accept argc/argv in place of string.
  518. * client.h: Update protos to match the changes to client.c.
  519. * cvs.h (RCS_exec_rcsdiff, diff_exec): Update protos.
  520. (run_add_arg_p, run_arg_free_p): New protos.
  521. * diff.c (opts, opts_allocated): Replace with...
  522. (diff_argv, diff_argc, diff_arg_allocated): ...these.
  523. (add_diff_args): New convenience function.
  524. (diff): Use new constructs and APIs.
  525. * patch.c (patch_fileproc, RCS_checkin, RCS_delete_revs), rcscmds.c
  526. (call_diff_add_arg, call_diff_setup, RCS_merge, RCS_exec_rcsdiff,
  527. diff_exec, RCS_output_diff_options), update.c (patch_file): Use new
  528. APIs.
  529. * run.c (run_add_arg_p, run_arg_free_p): New functions.
  530. (run_argc_allocated): Make size_t.
  531. (run_setup, run_add_arg): Use new functions.
  532. * sanity.sh: Accomodate above changes.
  533. (rcslib-diffrgx-3): Slip in test for space splitting.
  534. 2005-05-02 Derek Price <derek@ximbiot.com>
  535. Remove unnecessary level of indirection.
  536. * lock.c (L_HISTORY_LOCK, L_VAL_TAGS_LOCK): Remove macros.
  537. (internal_lock, internal_clear_lock): Accept lock as argument.
  538. (history_lock, clear_history_lock, val_tags_lock, clear_val_tags_lock):
  539. Replace old macro arg with an actual lock pointer.
  540. 2005-05-02 Derek Price <derek@ximbiot.com>
  541. * lock.c (internal_lock, internal_clear_lock): Add protos.
  542. (history_lock, val_tags_lock): Return the chartered true/false status.
  543. 2005-05-02 Derek Price <derek@ximbiot.com>
  544. * cvs.h (CVSHISTLCK): Rename macro to...
  545. (CVSHISTORYLCK): ...this.
  546. (CVSVALTAGSLCK): New macro.
  547. (val_tags_lock, clear_val_tags_lock): New functions.
  548. * lock.c (global_val_tags_lock): New global.
  549. (Lock_Cleanup): Clean up after val-tags lock if necessary.
  550. (L_HISTORY_LOCK, L_VAL_TAGS_LOCK): New local macros.
  551. (internal_lock, internal_clear_lock, val_tags_lock,
  552. clear_val_tags_lock): New functions.
  553. (history_lock, clear_history_lock): Use new internal functions.
  554. * tag.c (is_in_val_tags, add_to_val_tags): New functions using the
  555. write-lock for val-tags and factored from...
  556. (tag_check_valid): ...this function.
  557. * sanity.sh (lockfiles-22): Add val-tags lock test.
  558. 2005-04-28 Derek Price <derek@ximbiot.com>
  559. * cvs.h (history_lock, clear_history_lock): New protos.
  560. * lock.c (struct lock): Add lockdirname.
  561. (global_history_lock): New global.
  562. (global_read_lock): Initialize.
  563. (lock_name): Handle const args.
  564. (lock_simple_remove): Factor out code in favor of clear_lock call.
  565. (set_lock): Handle variable lockdirname.
  566. (lock_filesdoneproc): Set new lockdirname.
  567. (history_lock, clear_history_lock): New functions.
  568. (clear_lock): Avoid segfault on missing lock.
  569. (Lock_Cleanup): Clean up history locks when necessary.
  570. * history.c (history_write): Use new lock.
  571. * sanity.sh (lockfiles-20): Test new lock.
  572. 2005-04-28 Derek Price <derek@ximbiot.com>
  573. * sanity.sh (lockfiles): Port some locking tests over from 1.12.x.
  574. 2005-04-28 Derek Price <derek@ximbiot.com>
  575. * lock.c (clear_lock): Improve comment.
  576. 2005-04-28 Derek Price <derek@ximbiot.com>
  577. * lock.c (struct lock): Store lockdir name.
  578. (masterlock): Remove global.
  579. (remove_lock_files, clear_lock, set_lock): Update to compensate.
  580. 2005-04-20 Derek Price <derek@ximbiot.com>
  581. * sanity.sh (rcs5): Minor cosmetic change.
  582. 2005-04-20 Derek Price <derek@ximbiot.com>
  583. * sanity.sh (tests): Add rcs4.
  584. (rcs5): Add comments.
  585. 2005-04-20 Derek Price <derek@ximbiot.com>
  586. * rcs.c (expand_keywords): Avoid buffer overflow.
  587. (Original patch from Stewart Brodie <stewart@eh.org>.)
  588. * sanity.sh (rcs5): New tests for the above.
  589. 2005-03-17 Derek Price <derek@ximbiot.com>
  590. * login.c (password_entry_parseline): Avoid using uninitialized
  591. variable.
  592. * rcs.c (RCS_deltas): Avoid buffer overflow.
  593. (RCS_checkout): Avoid using uninitialized loglen.
  594. * patch.c (patch_fileproc): Free original pointer, not one that may
  595. have been incremented.
  596. (Thanks to report from Alen Zukich <alen.zukich@klocwork.com>.)
  597. 2005-03-17 Derek Price <derek@ximbiot.com>
  598. * commit.c (checkaddfile): Avoid dereferencing a NULL pointer in
  599. response to a rare error.
  600. * admin.c (admin_fileproc), log.c (log_expand_revlist), mkmodules.c
  601. (checkout_file), rcs.c (RCS_getdate, RCS_deltas, RCS_findlock_or_tip,
  602. RCS_tag2rev): Avoid dereferencing NULL pointer.
  603. (Thanks to report from Alen Zukich <alen.zukich@klocwork.com>.)
  604. 2005-03-17 Derek Price <derek@ximbiot.com>
  605. * rcs.c (RCS_reparsercsfile): Avoid memory leak.
  606. (Thanks to report from Alen Zukich <alen.zukich@klocwork.com>.)
  607. 2005-03-17 Derek Price <derek@ximbiot.com>
  608. * log.c (log_expand_revlist): Suppress message and not error handling
  609. when really_quiet.
  610. 2005-03-17 Derek Price <derek@ximbiot.com>
  611. * client.c (call_in_directory): Put function call after var decls.
  612. 2005-03-16 Derek Price <derek@ximbiot.com>
  613. * client.c (call_in_directory), commit.c (commit_filesdoneproc), log.c
  614. (log_expand_revlist, log_version), logmsg.c (logfile_write), modules
  615. (my_module), no_diff.c (No_Difference), parseinfo.c (Parse_Info), rcs.c
  616. (RCS_deltas, RCS_checkin, RCS_addbranch, do_locks, do_symbols),
  617. rcscmds.c (RCS_merge), root.c (parse_cvsroot, normalize_cvsroot),
  618. update.c (merge_file): Verify assumptions via assertions.
  619. (Thanks to (probably) incorrect reports from Alen Zukich
  620. <alen.zukich@klocwork.com>.)
  621. 2005-03-16 Derek Price <derek@ximbiot.com>
  622. * server.c (create_adm_p, serve_entry), tag.c (rtag_proc): Avoid memory
  623. leaks.
  624. (Thanks to report from Alen Zukich <alen.zukich@klocwork.com>.)
  625. 2005-03-15 Mark D. Baushke <mdb@cvshome.org>
  626. * history.c (select_hrec): Avoid possible memory leak.
  627. 2005-03-15 Derek Price <derek@ximbiot.com>
  628. * patch.c (patch_proc): Avoid memory leak.
  629. (Thanks to report from Alen Zukich <alen.zukich@klocwork.com>.)
  630. 2005-03-11 Mark D. Baushke <mdb@cvshome.org>
  631. * modules.c (my_module): Protect against free (NULL) code path.
  632. 2005-03-11 Derek Price <derek@ximbiot.com>
  633. * annotate.c (rannotate_proc), fileattr.c (fileattr_write), rcs.c
  634. (RCS_deltas), server.c (check_repository_password), update.c (update):
  635. Avoid memory leaks.
  636. (Thanks to report from Alen Zukich <alen.zukich@klocwork.com>.)
  637. 2005-03-09 Derek Price <derek@ximbiot.com>
  638. * add.c (add, add_directory), buffer.c (allocate_buffer_datas),
  639. client.c (update_entries), commit.c (checkaddfile), entries.c
  640. (Entries_Open), fileattr.c (fileattr_read), ignore.c (ign_add),
  641. import.c (import), main.c (main), parseinfo.c (parse_config), rcs.c
  642. (RCS_reparsercsfile, RCS_getbranchpoint, RCS_checkout,
  643. RCS_delete_revs, apply_rcs_changes): Avoid memory leaks.
  644. (Thanks to report from Alen Zukich <alen.zukich@klocwork.com>.)
  645. * hardlink.c, hardlink.h: Avoid compiling entire contents of these
  646. files w/o preserve permissions support.
  647. 2005-03-09 Mark D. Baushke <mdb@cvshome.org>
  648. * history.c (history, save_file): Cleanup the API to match the
  649. comments.
  650. 2005-02-27 Jim Meyering <jim@meyering.net>
  651. * login.c (password_entry_operation): Exit nonzero when
  652. failing to close a just-appended-to .cvspass file.
  653. 2005-02-26 Larry Jones <lawrence.jones@ugs.com>
  654. * release.c (release): Remove unneeded code.
  655. 2005-02-22 Derek Price <derek@ximbiot.com>
  656. * edit.c: Load watch settings before setting new ones with
  657. `cvs watch on/off'.
  658. (Original patch from Jim Hyslop <jhyslop@ieee.org>.)
  659. * sanity.sh (watch6): New tests for same.
  660. (Outline from Jim Hyslop <jhyslop@ieee.org>.)
  661. 2005-02-21 Mark D. Baushke <mdb@cvshome.org>
  662. * import.c (import): Avoid using assert with side effects it may
  663. be configured away using NDEBUG.
  664. (Patch from Frank Hemer <frank@hemer.org>.)
  665. 2005-02-08 Derek Price <derek@ximbiot.com>
  666. * build_src.com: Build stack.c on VMS.
  667. (Suggestion from Piet Schuermans <pschuermans@mac.com>.)
  668. 2005-02-01 Larry Jones <lawrence.jones@ugs.com>
  669. * log.c (log_fileproc, log_expand_revlist): Add support for BASE tag.
  670. * sanity.sh (log): New tests for above.
  671. 2005-01-31 Derek Price <derek@ximbiot.com>
  672. * main.c: Update year in copyright notice to match GNU standards.
  673. * sanity.sh (version-1): Update to match.
  674. 2005-01-31 Derek Price <derek@ximbiot.com>
  675. * main.c: Rephrase --version message.
  676. * sanity.sh (version-1): Update to match.
  677. 2005-01-31 Derek Price <derek@ximbiot.com>
  678. * Makefile.am, add.c, admin.c, annotate.c, checkin.c, checkout.c,
  679. classify.c, commit.c, create_adm.c, cvs.h, cvsrc.c, diff.c, entries.c,
  680. find_names.c, hash.c, hash.h, history.h, import.c, lock.c, log.c,
  681. login.c, logmsg.c, main.c, mkmodules.c, modules.c, myndbm.c, no_diff.c,
  682. parseinfo.c, patch.c, rcs.c, rcs.h, rcscmds.c, recurse.c, remove.c,
  683. repos.c, root.c, root.h, server.h, stack.c, stack.h, status.c, subr.c,
  684. tag.c, update.c, vers_ts.c, version.c: Update copyright notices.
  685. 2005-01-29 Derek Price <derek@ximbiot.com>
  686. * log.c (log_usage): Add note about using -S with revision info
  687. supression and selection.
  688. (Suggestion from Dan Peterson <dbpete@aol.com>.)
  689. 2004-12-19 Larry Jones <lawrence.jones@ugs.com>
  690. * expand_path.c (expand_path): Rewrite using offsets instead of
  691. pointers to simplify and avoid reallocation bugs.
  692. (Inspired by Jeremy Bopp <jeremy@motive.com>.)
  693. 2004-12-09 Derek Price <derek@ximbiot.com>
  694. * sanity.sh (tests): Add modules7.
  695. 2004-12-09 Derek Price <derek@ximbiot.com>
  696. * sanity.sh (modules7): New test group.
  697. (Based on a patch from Mark D. Baushke <mdb@cvshome.org>, based on a
  698. report from Richard Verhoeven <Richard_Verhoeven@WestLB.de>.)
  699. 2004-11-18 Mark D. Baushke <mdb@cvshome.org>
  700. * checkout.c (checkout_proc): Passing the repository to
  701. tag_check_valid seems to stop the assertion failure in recurse.c
  702. do_recursion.
  703. * sanity.sh (basic2-21a): Removed.
  704. (basic2-21b): Fixed.
  705. 2004-11-17 Mark D. Baushke <mdb@cvshome.org>
  706. * sanity.sh (basic2-21a): The val-tags file should have
  707. at least 'rtagged-by-head y' in it.
  708. (basic2-21b): New test showing a cvs bug when val-tags
  709. is not properly updated.
  710. (Report from "John Elgin" <John@JCElgin.com>.)
  711. 2004-11-17 Mark D. Baushke <mdb@cvshome.org>
  712. * client.c (handle_m, handle_e): Winsock is returning
  713. SOCK_ERRNO == WSAENOTSOCK for select() problems and not
  714. setting errno. Do not bother with printing an error from a
  715. select() that is not returning an non-zero errno.
  716. (Report from Conrad T. Pino <Conrad@Pino.com>.)
  717. 2004-11-10 Derek Price <derek@ximbiot.com>
  718. * sanity.sh: Maintain pass/skip/warn status and output at end.
  719. (usage): Note new functionality of -e.
  720. (warn): New function.
  721. (verify_tmp_empty): Warn instead of failing. Delete turds if warn()
  722. doesn't exit.
  723. 2004-11-10 Derek Price <derek@ximbiot.com>
  724. * sanity.sh (verify_tmp_empty): New function.
  725. (dotest_internal_*): Call verify_tmp_empty as needed.
  726. 2004-11-09 Mark D. Baushke <mdb@cvshome.org>
  727. * sanity.sh: Backport find_tool changes from 1.12.9.1.
  728. (SEARCHPATH): New list of PATH directories to search.
  729. (Which): Use $SEARCHPATH. Support -a switch.
  730. (badtools,set_bad_tool,is_bad_tool): Keep track of tools that do
  731. not work for us.
  732. (version_test): Obtain the version of tools under test if
  733. possible.
  734. (tool_find): Rewrite. API changed to allow a list of
  735. tests to be used against a list of possible command names found on
  736. the SEARCHPATH.
  737. (id_tool_test): Check that 'id -u' and 'id -un' work.
  738. (expr_tooltest1): Check for NextStep 3.3 expr bug.
  739. (expr_tooltest2): Check for SunOS expr multi-line pattern bug.
  740. (expr_create_bar): Create a test file for expr testing.
  741. (expr_tooltest3): Use it and test for big multi-line identity
  742. matches.
  743. (expr_set_ENDANCHOR): Find and set the right value for ENDANCHOR.
  744. (expr_set_DOTSTAR): Find and set the right value for DOTSTAR.
  745. (expr_tooltest_DOTSTAR): Ensure that DOTSTAR works with big
  746. matches.
  747. (tr_tooltest1): Verify that tr handles NUL bytes.
  748. (awk_tooltest1): Verify that awk the BEGIN clause works properly.
  749. (awk_tooltest2): Verify that print %c format item works properly.
  750. 2004-11-02 Mark D. Baushke <mdb@cvshome.org>
  751. * filesubr.c (MAXSIZE): New macro.
  752. (xreadlink): Ensure initial buffer size does not exceed MAXSIZE.
  753. Avoid cast. If readlink fails with buffer size just under MAXSIZE,
  754. try again with MAXSIZE.
  755. 2004-11-02 Mark D. Baushke <mdb@cvshome.org>
  756. * filesubr.c (xreadlink): AIX and HP-UX readlink() returns ERANGE
  757. when there is not enough room in the buffer.
  758. 2004-11-01 Derek Price <derek@ximbiot.com>
  759. * sanity.sh (rcslib): Fix typo in path.
  760. 2004-11-01 Derek Price <derek@ximbiot.com>
  761. * sanity.sh (rcslib): Test a link to a path longer than 128
  762. characters.
  763. 2004-10-29 Derek Price <derek@ximbiot.com>
  764. * filesubr.c (xreadlink): Make sure allocation is tried once at the
  765. maximum buffer size. Protect against overflow.
  766. 2004-10-29 Mark D. Baushke <mdb@cvshome.org>
  767. * filesubr.c (SIZE_MAX, SSIZE_MAX): Use #include "xsize.h" instead.
  768. (xreadlink): Use xrealloc instead of xmalloc/free.
  769. 2004-10-29 Mark D. Baushke <mdb@cvshome.org>
  770. * filesubr.c (SIZE_MAX, SSIZE_MAX): New constants.
  771. (xreadlink): Deal with symlinks longer than 127 bytes.
  772. (Problem reported as issue 190 by Gottfried Ganssauge
  773. <gotti@cvshome.org>.)
  774. 2004-10-28 Mark D. Baushke <mdb@cvshome.org>
  775. * release.c (release): Allow builds of cvs with --disable-server
  776. --disable-client both used for local installation configuration.
  777. * root.c (Name_Root): Ditto.
  778. * update.c (checkout_file): Ditto.
  779. (Problem reported by Jean Olivier Caron <jecar@mlab.t.u-tokyo.ac.jp>.)
  780. 2004-10-27 Mark D. Baushke <mdb@cvshome.org>
  781. * cvs.h (RCS_FLAGS_USETIME): New flag.
  782. * rcs.c (RCS_checkin): Add citime argument.
  783. * rcs.h (RCS_checkin): Ditto.
  784. * checkin.c (Checkin): Pass new RCS_checkin argument.
  785. * commit.c (remove_file, checkaddfile): Ditto.
  786. * import.c (add_rev): Ditto.
  787. * sanity.sh (tagdate): Delete tagdate-19b as an incorrect test.
  788. 2004-10-27 Mark D. Baushke <mdb@cvshome.org>
  789. * sanity.sh (tagdate): Provide more output.
  790. 2004-10-26 Mark D. Baushke <mdb@cvshome.org>
  791. * commit.c (checkaddfile): Create a dead version for a new file
  792. added to a branch. Fixes FIXCVS for tagdate tests.
  793. * sanity.sh (tagdate): Update to expect correct results.
  794. (death2, branch-after-import, join, ignore-on-branch): Ditto.
  795. 2004-10-26 Derek Price <derek@ximbiot.com>
  796. * client.c (connect_to_gserver): Avoid truncating error messages from
  797. the GSSAPI server.
  798. (Report from Dan Peterson <dbpete@aol.com>.)
  799. 2004-10-26 Derek Price <derek@ximbiot.com>
  800. * sanity.sh (import-quirks): Test an even branch number.
  801. 2004-10-25 Derek Price <derek@ximbiot.com>
  802. * import.c (import): Repair regex for regressions introduced in last
  803. commit.
  804. * sanity.sh (import-quirks): Test a few branch numbers import shouldn't
  805. have a problem with.
  806. 2004-10-25 Derek Price <derek@ximbiot.com>
  807. * import.c (import): Anchor and simplify branch verification regex.
  808. * sanity.sh (import-quirks): Test another pattern that should fail.
  809. 2004-10-25 Mark D. Baushke <mdb@cvshome.org>
  810. * sanity.sh (tagdate): Added some additional tests and FIXCVS
  811. comments for dealing properly with a 'cvs add' of a file to
  812. a branch that already exists on the mainline.
  813. (Problem reported by Renny Barrett <rbarrett@curamsoftware.com>.)
  814. * sanity.sh (getrlogdate): New shell function.
  815. (tagdate-{13,14,16}): Use it to avoid 'sleep 60' by using
  816. the exact 1.1.4.1 timestamp for tagdate-14 and tagdate-16.
  817. 2004-10-22 Mark D. Baushke <mdb@cvshome.org>
  818. * sanity.sh (tagdate): Fix typo.
  819. 2004-10-19 Derek Price <derek@ximbiot.com>
  820. * add.c (add): Avoid attempting to resurrect a dead rev 1.1.
  821. * sanity.sh (resurrection): Add test for the above.
  822. (Report from Dan Peterson <dbpete@aol.com>.)
  823. 2004-10-14 Derek Price <derek@ximbiot.com>
  824. * import.c (import): Verify branch specifications more thoroughly.
  825. * sanity.sh (importb): Adapt to new error message.
  826. (import-quirks): New test.
  827. 2004-10-04 Derek Price <derek@ximbiot.com>
  828. * cvs.h (CVSROOT_DFLT): Undef rather than defining to NULL.
  829. * main.c (main): Untangle parsing of CVSROOT, eliminating several
  830. variables in the process. Simplify xmalloc/sprintf with asnprintf.
  831. 2004-10-01 Mark D. Baushke <mdb@cvshome.org>
  832. * main.c (main): Initialize CVSroot before it is used.
  833. (Report and patch by Martin Neitzel <neitzel@sco.gaertner.de>.)
  834. * sanity.sh (status): Test it.
  835. 2004-09-25 Mark D. Baushke <mdb@cvshome.org>
  836. * sanity.sh (parseroot2): Correct two test names. Restore CVSROOT.
  837. * sanity.sh (parseroot2): Expand dokeep inline.
  838. 2004-09-24 Derek Price <derek@ximbiot.com>
  839. * sanity.sh (tests): Add parseroot2.
  840. 2004-09-24 Derek Price <derek@ximbiot.com>
  841. * sanity.sh (parseroot2): New test for root parsing consistency.
  842. (Original patch from Alexander Taler <dissent@cvshome.org>.)
  843. * cvs.h (Name_Root, free_cvsroot_t, parse_cvsroot, local_cvsroot,
  844. Create_Root, root_allow_add, root_allow_free, root_allow_ok): Move
  845. these protos to...
  846. * root.h: ...here.
  847. * client.c (arg_should_not_be_sent_to_server), recurse.c
  848. (start_recusrion, do_recursion): Use new Name_Root API.
  849. * main.c (current_root): Remove global.
  850. (set_root_directory): Set current_parsed_root directly.
  851. (main): Use new Name_Root API. Restore deletion of root directories
  852. list.
  853. * root.c (Name_Root): Return a parsed cvsroot_t rather than a string.
  854. 2004-09-23 Derek Price <derek@ximbiot.com>
  855. * sanity.sh (depends_on_ssh, sshstdio): Don't use skip() to skip
  856. remote-only tests.
  857. 2004-09-23 Mark D. Baushke <mdb@cvshome.org>
  858. * server.c (cvs_output, cvs_output_binary): fflush (stderr)
  859. here to avoid problems with 'cvs status 2>&1'.
  860. (Report by Frank Hemer <frank@hemer.org>.)
  861. 2004-09-23 Derek Price <derek@ximbiot.com>
  862. * sanity.sh (crerepos, sshstdio): Minor modifications to make use of
  863. the new depends_on_?sh API.
  864. 2004-09-23 Derek Price <derek@ximbiot.com>
  865. * sanity.sh: Accept new -e option to interpret non-fatal calls to skip
  866. as errors.
  867. (skip, depends_on_rsh, depends_on_ssh): New functions.
  868. 2004-09-12 Mark D. Baushke <mdb@cvshome.org>
  869. * rcs.c (RCS_checkout): Allow noexec to do checkouts when
  870. server_active is true.
  871. * sanity.sh (join7): Test above change (fixes a FIXCVS).
  872. 2004-09-08 Mark D. Baushke <mdb@cvshome.org>
  873. * sanity.sh (join7): Fix if-then-else conditional.
  874. * server.c (server_updated): Deal with cvs -n update -jt1 -jt2
  875. "protocol error: uncounted data discarded" problem.
  876. * sanity.sh (join7): New test for this case.
  877. 2004-08-24 Derek Price <derek@ximbiot.com>
  878. * recurse.c (start_recursion): Don't shorten //. to / (use //).
  879. 2004-08-24 Derek Price <derek@ximbiot.com>
  880. * recurse.c (start_recursion): Strip trailing CWD indirections on
  881. repository.
  882. * sanity.sh (rstar-toplevel): Update to account for new behavior.
  883. (Report from Dan Peterson <dbpete@aol.com>.)
  884. 2004-08-24 Mark D. Baushke <mdb@cvshome.org>
  885. * recurse.c (do_recursion): Correct test for calling
  886. server_pause_check to occur when locktype != CVS_LOCK_WRITE.
  887. (Patch suggested by Ian Lance Taylor <ian@wasabisystems.com>
  888. in bug#198).
  889. 2004-08-24 Derek Price <derek@ximbiot.com>
  890. * rcs.c (translate_symtag): Prevent infinite loop.
  891. * tag.c (tag_check_valid): Check tag syntax before searching for tags.
  892. * sanity.sh (tag-space): Some tests for the above.
  893. (Report from Dan Peterson <dbpete@aol.com>.)
  894. 2004-08-24 Mark D. Baushke <mdb@cvshome.org>
  895. * ignore.c (ignore_directory): Include the terminating NUL
  896. character in the directory name comparison to avoid matching
  897. substrings of directories by accident.
  898. (Report and suggested fix from James E Wilson
  899. <wilson@specifixinc.com>.)
  900. * sanity.sh (modules4): Add some more tests testing the above
  901. change.
  902. 2004-08-17 Mark D. Baushke <mdb@cvshome.org>
  903. * sanity.sh (sshstdio): Fix comment typo plus gratuitous
  904. reformatting.
  905. * client.c (handle_m): Workaround to deal with stdio getting put
  906. into non-blocking via redirection of stderr and interaction with
  907. ssh on some platforms. On those boxes, stdio can put stdout
  908. unexpectedly into non-blocking mode which may lead to fwrite() or
  909. fflush() failing with EAGAIN, but cvs not checking for the error.
  910. (Patch suggested by Frank Hemer <frank@hemer.org>.)
  911. * client.c (handle_e): Similar fix for stderr.
  912. * sanity.sh (sshstdio): New test for non-blocking stdio via ssh.
  913. 2004-08-11 Derek Price <derek@ximbiot.com>
  914. * sanity.sh (basicc): Work around a problem in Linux 2.2 & Bash 2.05b
  915. which prevents a `cd ..' from a deleted directory from working.
  916. (Original patch from Matthew Ogilvie <mmo9317bd@mailcan.com>.)
  917. 2004-06-22 Derek Price <derek@ximbiot.com>
  918. * wrapper.c: Add explicit "void" return type to "wrap_clean_fmt_str"
  919. definition.
  920. (Patch from Conrad T. Pino <Conrad@Pino.com>.)
  921. 2004-06-09 Derek Price <derek@ximbiot.com>
  922. * commit.c, filesubr.c, history.c, server.c, wrapper.c: Various
  923. security fixes.
  924. (Original patch from Stefan Essler <s.esser@e-matters.de> & Sebastian
  925. Krahmer <krahmer@suse.de>.)
  926. * cvs.h: Include xsize.h.
  927. 2004-06-09 Derek Price <derek@ximbiot.com>
  928. * server.c (serve_entry, serve_is_modified, serve_unchanged): Protect
  929. against malformed entries.
  930. * sanity.sh (server): Tests for same.
  931. 2004-06-07 Larry Jones <lawrence.jones@ugsplm.com>
  932. * sanity.sh (basica): More tests for string-based revision inc.
  933. 2004-06-04 Larry Jones <lawrence.jones@ugsplm.com>
  934. * subr.c (increment_revnum): Rewrite ala RCS to work directly on
  935. the string rather than converting to int to avoid overflow.
  936. * sanity.sh (basica): New tests for above, update others to match.
  937. 2004-05-19 Derek Price <derek@ximbiot.com>
  938. * server.c (serve_unchanged, serve_is_modified): Overwrite existing
  939. data in timefields. Fixes CAN-2004-0396.
  940. 2004-05-14 Derek Price <derek@ximbiot.com>
  941. * subr.c (file_has_conflict), vers_ts.c (time_stamp_server): Don't
  942. require '=' to be the only character here, as this is potentially
  943. destabilizing.
  944. 2004-05-14 Mark D. Baushke <mdb@cvshome.org>
  945. * sanity.sh (trailingslashes): During cleanup remove topfile,v to
  946. avoid problems in later tests (editor-1).
  947. 2004-05-13 Derek Price <derek@ximbiot.com>
  948. * sanity.sh (trailingslashes): Note TODO item #205 in the comment.
  949. 2004-05-13 Derek Price <derek@ximbiot.com>
  950. * sanity.sh (trailingslashes): New tests to expose a bug in CVS when
  951. paths are specified with trailing slashes. This relates to TODO #205.
  952. 2004-05-12 Derek Price <derek@ximbiot.com>
  953. * subr.c (file_has_conflict), vers_ts.c (time_stamp_server): Only
  954. special case "=" when it is the only character in a timestamp field.
  955. Gratuitous reformatting.
  956. * vers_ts.c (time_stamp_server): Check for NULL in a consistent manner.
  957. Gratuitous reformatting.
  958. 2004-05-10 Derek Price <derek@ximbiot.com>
  959. * sanity.sh (top-level): Rename to...
  960. (rstar-toplevel): ...this for clarity.
  961. 2004-05-10 Derek Price <derek@ximbiot.com>
  962. * sanity.sh (dirs2-10ar): Remove unnecessary empty argument.
  963. 2004-05-02 Larry Jones <lawrence.jones@ugsplm.com>
  964. * log.c (log_expand_revlist): Suppress warnings if really_quiet.
  965. 2004-05-07 Derek Price <derek@ximbiot.com>
  966. * sanity.sh (basica): Remove unnecessary empty arguments.
  967. 2004-05-07 Derek Price <derek@ximbiot.com>
  968. * cvs.h (fopen_case): Remove obsolescent prototype.
  969. 2004-05-05 Derek Price <derek@ximbiot.com>
  970. * sanity.sh: Wait a second and retry if cvs-serv* directories are
  971. discovered to avoid race conditions on some systems.
  972. (Patch from Pavel Roskin <proski@gnu.org>.)
  973. 2004-05-05 Derek Price <derek@ximbiot.com>
  974. * commit.c: Some gratuitous reformatting.
  975. 2004-05-04 Derek Price <derek@ximbiot.com>
  976. * update.c: Some gratuitous reformatting.
  977. 2004-05-04 Derek Price <derek@ximbiot.com>
  978. * add.c (add): Remove obsolete FIXME comment.
  979. (*): Some gratuitous reformatting.
  980. 2004-04-26 Derek Price <derek@ximbiot.com>
  981. * client.c (start_rsh_server): Don't rely on GNU argument processing
  982. capabilities in the RSH command.
  983. (Report from Mark Andrews <Mark_Andrews@isc.org>.)
  984. 2004-04-19 Derek Price <derek@ximbiot.com>
  985. * ignore.c: Gratuitous reformatting.
  986. 2004-04-11 Derek Price <derek@ximbiot.com>
  987. * client.c (call_in_directory): Check paths the server sends us to make
  988. sure they are within a sandbox the user requested be updated.
  989. (is_valid_client_path, path_list_prefixed): New functions.
  990. 2004-04-11 Derek Price <derek@ximbiot.com>
  991. * modules.c (do_module): Don't allow up-level references in paths to
  992. step out of the repository.
  993. * sanity.sh (multiroot3): Update tests and add a few more.
  994. 2004-04-07 Derek Price <derek@ximbiot.com>
  995. * sanity.sh (parseroot): Replace hard path with $HOME.
  996. 2004-04-07 Derek Price <derek@ximbiot.com>
  997. * sanity.sh (parseroot): s/oberon/$username/.
  998. 2004-04-07 Derek Price <derek@ximbiot.com>
  999. * client.c (start_tcp_server): Use xstrdup rather than
  1000. xmalloc(strlen)/strcpy.
  1001. 2004-04-07 Derek Price <der…