summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
AgeCommit message (Collapse)Author
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-18Add the branch revision to the status output much like GNU cvs does.Joris Vink
OK millert@
2016-10-16Remove useless n=n assignment in the first parse of a for().Todd C. Miller
It was already removed from the rcs version by nicm@.
2016-10-15Quiet compiler warnings. OK tomc@ tb@Todd C. Miller
2016-10-14Fix update -r and -A.Frederic Cambus
In certain cases update -r and update -A would not properly set or reset the sticky tag for file(s). From Joris Vink. OK millert@
2016-10-13rcsnum_free() -> free() cleanups. From Michael W. Bombardieri.Frederic Cambus
OK millert@
2016-10-13Fix revision lookups for branches. Properly perform a revisionTodd C. Miller
lookup so update -r actually works again, as a bonus throw a more correct error when the revision could not be found. From Joris Vink.
2016-10-12When allocating the h_table array use the size of struct hash_head,Todd C. Miller
not the size of a pointer. From Joris Vink. OK fcambus@
2016-10-12Use the correct type for p. From Joris Vink.Frederic Cambus
OK tb@
2016-09-04Add missing getpw pledgeTheo Buehler
ok deraadt
2016-08-16When the commit message is empty, don't default to c)ontinueTheo Buehler
(committing without log message) but a)bort. Also, accept the uppercase versions of the choices. Matches the corresponding change of behavior of GNU cvs. suggested by & ok jcs
2015-12-24more e-mail -> emailmmcc
2015-12-22commited -> committedmmcc
2015-12-09Remove NULL-checks before free(). ok tb@mmcc
2015-11-19opencvs can use pledge "stdio rpath wpath cpath fattr proc exec".Theo de Raadt
I have not looked into adding stricter pledges later in the code.
2015-11-17Merge xmalloc.[ch] files across base, skipping OpenSSH for now.Tobias Stoeckmann
ok nicm
2015-11-05Remove xfree(), like already done for RCS. From Michael W Bombardieri,Nicholas Marriott
ok mmcc
2015-09-05Add brackets to clarify assignments that are the result of a test operator.Jonathan Gray
ok deraadt@ looks correct millert@ jung@
2015-08-20Do not cast result of malloc/calloc/realloc* if stdlib.h is in scopeTheo de Raadt
ok krw millert
2015-04-04Add support for commit ids to opencvs status.Stefan Sperling
Patch by joris via tech@; reminded by tedu
2015-04-04Fix modified timestamp in output of opencvs status.Stefan Sperling
Patch by joris via tech@; reminded by tedu
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-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-01-08unsigned char for ctype. ok deraadtOkan Demirmen
2013-12-13Make it compile again. And there is a time_t fix as a bonus!Vadim Zhukov
Input and okay jca@.
2013-12-03do not need timeb.hTheo de Raadt
2013-08-14more Bx;Jason McIntyre
From: Jan Stary
2013-06-29do not use Sx for sections outwith the page;Jason McIntyre
man4 still to go...
2013-06-03properly handle commitid tokens found in rcs filesjoshua stein
ok deraadt
2013-04-19Constrain the 2038 check to only when sizeof(time_t) == sizeof(int).Theo de Raadt
Adding more powerful checking is too difficult. We'll fix this problem by moving to 64-bit time_t.. and once we do, we don't want this code to falsely trigger. ok millert
2012-07-02simplify rcsnum parsing by using a fixed array without all the reallocTed Unangst
ok stsp
2012-03-04In preparation for getline and getdelim additions to libc, rename getline()Federico G. Schwindt
occurrences to get_line(). Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.
2012-02-04Sync rcsparse between OpenCVS/OpenRCS. Spaces, no binary change.Tobias Stoeckmann
2011-12-27Move some global variables/statics to locals, from Michael WNicholas Marriott
Bombardieri.
2011-09-20Lose unused variable cvs_msg, from Michael W Bombardieri.Nicholas Marriott
2011-06-03add missing header, needed by the use of struct tmCharles Longeau
ok nicm@ xsa@
2011-05-20Remove a silly XXX for a bit of code that is only used once - no valueNicholas Marriott
in making it a function. From Michael W Bombardieri.
2011-05-04Fix a typo in a comment, from Michael W Bombardieri.Nicholas Marriott
2011-05-02Fix bad return value check for rcsnum_cmp()Charles Longeau
ok nickm@ xsa@
2011-04-20Remove some includes and defines that are no longer needed, from MichaelNicholas Marriott
W Bombardieri.
2011-04-20Trivial code simplifying, from Michael W Bombardieri.Nicholas Marriott
2011-04-20Use -u when diff context is 3, from Michael W Bombardieri, tweaked byNicholas Marriott
millert.
2011-04-01Move an isqrt() call outside a macro, from Michael W Bombardieri.Nicholas Marriott
ok ray
2011-03-27Get rid of some warnings, from Michael W Bombardieri.Nicholas Marriott
2011-03-26- note that -T overrides TMPDIR, and a few other tweaks;Jason McIntyre
from Michael W. Bombardieri -T stuff verified by nicm
2010-11-11Nuke dead assignments and a dead function, from Michael W BombardieriNicholas Marriott
using lint.