summaryrefslogtreecommitdiff
path: root/usr.bin/rcs
AgeCommit message (Collapse)Author
2019-08-10Amend previous fix; joris@ fixed the same bug in OpenCVS's diff3.c r1.47.Stefan Sperling
Put the OpenCVS fix, which additionally checks for trailing \n, into OpenRCS. Sync requested by deraadt@ (thanks, I would otherwise have overlooked this)
2019-08-10Fix merge(1) of files which contain lines with leading dots.Stefan Sperling
A check which tried to detect "dot on a line of its own" in the internal ed script was treating any line with a leading dot as such. Changes made to groups of such lines therefore ended up being truncated in the merged result. "For a random user, there's no shame in being unable to use ed." -- Michael W Lucas ok millert@ deraadt@
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2019-06-28asprintf returns -1, not an arbitrary value < 0. Also upon error theTheo de Raadt
(very sloppy specification) leaves an undefined value in *ret, so it is wrong to inspect it, the error condition is enough. discussed a little with nicm, and then much more with millert until we were exasperated
2019-04-26There was an extra newline in some cases and missing one in others.Todd C. Miller
OK joris@
2019-04-24new manual page rcsfile(5)Ingo Schwarze
written by Fabio Scotoni <fabio at esse dot ch> with minimal tweaks by me OK jmc@ deraadt@ millert@ on an earlier version
2019-01-09Delay keyword expansion in co until after the locks have been resolved.Joris Vink
This way the expansion can happen with the correct values and files do not show up as modified.
2019-01-09When expanding $Log$ make sure a newline is added if rd_log has none.Joris Vink
This can happen on new RCS files. Fixes $Log$ keyword expansion.
2019-01-09Make sure rcs_lock_add() and rcs_lock_remove() properly update theJoris Vink
rd_lock member of the matching delta. Other keyword substitution will not properly work in cases where the RCS file did not have a lock for the revision yet or if the lock is being removed.
2018-12-30Delete unnecessary <libgen.h> #includesPhilip Guenther
ok deraadt@
2018-06-07add some EXIT STATUS sections; from matthew martinJason McIntyre
2018-03-16improve markup quality in the cases found by the new "--" style messageIngo Schwarze
2017-10-17add missing HISTORY; based on CVS logs and release announcementsIngo Schwarze
2017-08-29kill const and string artithmetic related warnings; ok millert@Otto Moerbeek
2016-10-18Using bitwise OR along with two assignments in the conditional ofTodd C. Miller
a while() loop is a trap for the unwary programmer (albeit a clever trap). Break this up into two separate assignments and using boolean OR for clarity. OK otto@
2016-10-16Quiet compiler warnings; as applied to usr.bin/cvs by millert@Okan Demirmen
ok millert@
2016-08-31rlog: add -E and -S options to configure revision separators, toJoshua Stein
work around commits that might have the default strings in them ok tom deraadt
2016-08-26Pull in <time.h> for struct tm, used in rcs.hPhilip Guenther
ok deraadt@
2016-07-04The -I flag is documented but not implemented. This fixes that andTodd C. Miller
also honors the -I flag from ci/co when prompting like GNU RCS. OK jca@
2016-05-09Implement Mdocdate keyword substitution.Ingo Schwarze
In particular, this stops rcsdiff(1) and CVSweb from showing wrong Mdocdate lines in diffs. Problem originally reported by tj@. OK tobias@ otto@ millert@
2015-12-29fix exit status on pledge(2) failure.Gleydson Soares
from jsg@
2015-11-17Merge xmalloc.[ch] files across base, skipping OpenSSH for now.Tobias Stoeckmann
ok nicm
2015-11-02Allow rcsnum_free and buf_free to accept NULL and remove various NULLNicholas Marriott
checks that are now unnecessary, from Michael W Bombardieri. ok millert
2015-10-21Style fixes; from Ilya KalimanTodd C. Miller
2015-10-16Implement real "flock" request and add it to userland programs thatTodd C. Miller
use pledge and file locking. OK deraadt@
2015-10-10normalize a few more tame request orderings, to help reviewTheo de Raadt
2015-10-10pledge "stdio getpw rpath wpath cpath fattr". doug pointed out getpw*Theo de Raadt
use, and fattr for chmod. doug
2015-09-25fix the spacing of -m in the SYNOPSISIngo Schwarze
2015-09-05Add brackets to clarify assignments that are the result of a test operator.Jonathan Gray
ok deraadt@ looks correct millert@ jung@
2015-09-05Avoid unintended problems with operator precedence when doing anJonathan Gray
assignment and comparison. ok deraadt@ looks correct millert@ jung@
2015-06-17Use strdup in xstrdup; from Fritjof Bornebusch.Nicholas Marriott
2015-06-17Remove NULL check before free; Fritjof Bornebusch.Nicholas Marriott
2015-06-13Convert xfree to free. From Fritjof Bornebusch. ok deraadtNicholas Marriott
2015-03-26Use the (new) function name in errx() after its rename in r1.6.Okan Demirmen
ok bcallah@
2015-02-05Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@Todd C. Miller
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-12-01An internal function called xrealloc() is actually a fail-hardTheo de Raadt
reallocarray()... so rename it.
2014-11-28consistency in calling usage, from Fritjof BornebuschOtto Moerbeek
2014-11-22not compiled before commitTheo de Raadt
2014-11-22Fixed uninitialized pointer (and other struct entries while at it)Tobias Stoeckmann
which is referenced while parsing invalid RCS files. Spotted by jsg. ok deraadt
2014-11-16Convert the logic in rcsparse_warnx(). Instead of creating aAlexander Bluhm
temporary format string, create a temporary message. If there is not enough memory to log the error, just log this second error. The double error path gets never tested, so it should be simple. Make it work like the other places. OK doug@
2014-10-10Zap some stored values never read; From Fritjof Bornebusch; ok nicm@Otto Moerbeek
2014-10-10Explicitly handle -l and -u combinations. From Fritjof Bornebusch; ok daniel@Otto Moerbeek
2014-10-02exit in usage functions themselves; from Fritjof Bornebusch; ok nicm@Otto Moerbeek
2014-09-30atoi to strtonum; from Fritjof Bornebusch; ok nicm@Otto Moerbeek
2014-09-27Use %zu where appropriate, from Fritjof Bornebusch.Otto Moerbeek
2014-05-29use calloc, from Benjamin BaierTed Unangst
2014-05-19Plug a small memory leak: if we pass checkin_init/checkin_updateJeremie Courreges-Anglas
a revision thru pb.newrev, it will not be freed. From Fritjof Bornebusch, no objections from tech@
2014-04-29fix a test for invalid timezonesJonathan Gray
oks from a bunch of people
2014-01-07ctype cleanups; ok okanTheo de Raadt