summaryrefslogtreecommitdiff
path: root/usr.bin/rcs
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-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
2013-12-03no need for timeb.hTheo de Raadt
2013-10-27If a constant string needs a name, use a static const array instead of aPhilip Guenther
pointer or non-const array, as that minimizes the symbols, maximizes the placement into read-only memory, and avoids warnings from gcc -Wformat=2 when they're used as format strings. ok deraadt@
2013-08-12some minor fixes; From: Jan StaryJason McIntyre
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-05-16Switch rcsdiff(1) binary file detection from !(isprint() || isspace()) toStefan Sperling
checking for embedded NULs, as was done for grep(1) and diff(1) some time ago. Avoids problems with e.g. latin1-encoded files being treated as binary, since isprint() uses only ASCII by default and rcsdiff(1) doesn't call setlocale(). ok sthen
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
2013-04-17remove time_t cast not needed; ok guentherTheo de Raadt
2013-04-16remove wrong casts; ok millertTheo de Raadt
2013-01-18Document $OpenBSD$ and teach ci's -k option to parse it tooPhilip Guenther
ok deraadt@
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-03-03Remove unused variable, from Michael W Bombardieri who also got an okNicholas Marriott
from tobias@.
2012-02-04Sync rcsparse between OpenCVS/OpenRCS. Spaces, no binary change.Tobias Stoeckmann
2011-11-17+.Xr cvs 1 ,Jason McIntyre
from Michael W. Bombardieri;