summaryrefslogtreecommitdiffstats
path: root/usr.bin/rcs/rcsprog.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-3/+3
| | | | | | | | | 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)
* An internal function called xrealloc() is actually a fail-hardderaadt2014-12-011-3/+3
| | | | reallocarray()... so rename it.
* Explicitly handle -l and -u combinations. From Fritjof Bornebusch; ok daniel@otto2014-10-101-3/+7
|
* exit in usage functions themselves; from Fritjof Bornebusch; ok nicm@otto2014-10-021-5/+4
|
* argument to -t is optional.sobrado2011-07-121-2/+2
| | | | ok jmc@
* add missing header to properly use SIG* definitionschl2010-12-061-1/+2
| | | | ok tobias@ nicm@
* Set rcs_suffixes to default value on initialization.tobias2010-09-081-2/+2
| | | | ok ray zinovik
* Rename a bunch of variables and functions, removing the cvs_/rcs_ray2010-07-231-5/+5
| | | | | | prefixes to reduce differences between cvs and rcs files. "yes!" nicm
* bump version to match next releasejoris2009-02-151-2/+2
|
* typo fixed (overriden -> overridden)tobias2008-11-091-3/+3
| | | | ok espie, jmc
* bump version to 4.4joris2008-07-081-2/+2
|
* OpenRCS only handled a max of 128 arguments on command line + RCSINIT,tobias2008-05-101-34/+32
| | | | | | which was a bogus limit. Spotted by naddy. horribly prodded by and ok joris
* Duplicate envstr and free it on error instead of allocating forray2008-04-261-8/+5
| | | | | | each argument and freeing each argument on error. OK joris, tobias
* Prevent overflow of cmd_argv if RCS_INIT and command line argumentstobias2008-04-241-5/+5
| | | | | | exceed buffer size (diff based on OpenCVS code). ok ray, xsa
* fix segfault when trying to lock and unlock rcs files thatjoris2008-03-041-1/+13
| | | | | | | | contain no revisions. reported by Jean Raby. ok deraadt@
* Bump version. Improvements and fixes since last release.xsa2008-02-241-2/+2
| | | | OK joris@.
* Sync revisions and time buffers size to be consistent with each others.xsa2007-06-301-5/+5
| | | | | Simplifies further size tweaks if needed. OK ray@.
* `[-sstate[:rev]]' is not available in rcs(1)sobrado2007-04-261-3/+2
| | | | ok by jmc@, niallo@, and xsa@
* As done in OpenCVS, general includes cleanup sweep. OK otto@.xsa2007-02-271-2/+8
|
* you know what, now that openrcs is in fact working properly andjoris2007-01-101-2/+2
| | | | | | | has been in the previous release - how about we give it a proper version instead of "OpenCVS RCS 3.6" okay xsa@, ray@
* - no need to mention -e option twice in usage.niallo2006-12-271-2/+2
| | | | pointed out by Igor Sobrado <igor at string1.ciencias.uniovi.es>
* no magic, use defined RCS_LOCK_INVAL variable.xsa2006-11-131-3/+3
|
* - convert some warnx() to warn(), which fixes a few stupidly un-informative error messages (found by tom@)niallo2006-10-121-3/+3
| | | | | | - make rcs_choosefile() save wrt errno, input from ray@ ok joris@ xsa@
* Improve rcs_buf_load() by setting errno appropriately on failure andray2006-08-161-6/+18
| | | | | | | | | | never print errors or quit on error. Fix usages of rcs_buf_load() and rcs_set_description. Also plug an fd leak. OK xsa@
* Plug more memory leaks.ray2006-05-291-4/+3
| | | | OK joris@
* Remove a lot of xstrdup() calls in getopt() loops, which are usuallyray2006-05-281-16/+10
| | | | | | | unnecessary. These xstrdup() calls don't call xfree() before anyway, so if a flag is given multiple times memory leaks would have resulted. OK joris@
* Move -A<oldfile> handling into separate chunk of code. This alsoray2006-05-281-18/+18
| | | | | | removes a memory leak if -A is given multiple times. OK joris@
* Remove rcs_statfile(). It was just a wrapper for rcs_choosefile(),ray2006-05-271-6/+12
| | | | | | handling exceptions oddly. OK joris@
* fix printf + add missing printf when unlocking file (-u).xsa2006-05-191-2/+7
|
* missing bits for a working merge(1). Built and enabled.xsa2006-05-151-1/+2
| | | | OK joris@ ray@.
* fix informative msg's wrt to -q and stderr. now matches gnu/usr.bin/rcs.xsa2006-05-111-4/+7
|
* Remove /* NOTREACHED */ comments, now that lint is smart aboutray2006-05-091-3/+1
| | | | | | __dead. I never should have put them there. OK xsa@.
* using *_FOREACH macros is really bad when we are actuallyjoris2006-05-011-3/+6
| | | | | | | removing elements from the list inside the loop. this has been documented *clearly* in queue(3). okay niallo@
* Check return values for all strlcpy, and strlcat calls.ray2006-04-291-3/+4
| | | | OK xsa@ and probably others.
* Clarify man pages to match -t behavior and pretty up usage strings.ray2006-04-291-2/+2
| | | | OK xsa@ and jmc@.
* remove -h; ok xsajmc2006-04-281-2/+2
|
* move -M into compat land; ok xsajmc2006-04-271-3/+3
|
* prevent file races by obtaining an fd for the RCS file andjoris2006-04-261-9/+19
| | | | | | | | do our operations on that, this is safe and guarantees we can operate on the file until we close(2) it. a fix is coming for the remaining races in our diff code. okay niallo@ and ray@
* fork our code we shared between openrcs/cvs into the openrcs dir.joris2006-04-261-10/+10
| | | | | | | this was starting to become inhuman to maintain without ugly ugly hacks in the shared code, and it will be easier to make specific changes for openrcs without touching the soon-to-be-replaced opencvs code.
* quote strings consistently.xsa2006-04-251-3/+3
|
* fatal() -> err()/errx() as we try to not depend on heavy cvs_log().xsa2006-04-251-10/+10
| | | | OK joriski.
* be consistent in error messages for wrongly specified keyword substitutionxsa2006-04-241-3/+3
| | | | mode for `-k'.
* o Better match GNU behavior (a bare -t does NOT read from stdin,ray2006-04-241-36/+3
| | | | | | | | unlike rcs). o Share code with rcs by moving rcs_set_description() to rcsutil.c. o Change description prompt from #define to const char *. OK xsa@
* move shared functions into rcsutil.[ch]; this makes rcsprog.c cleaner;xsa2006-04-211-418/+5
| | | | "the voices in my head say OK!" joris@.
* match former rcs implementation warning message if no options arexsa2006-04-211-1/+6
| | | | specified when using rcs(1). OK ray@ joris@.
* remove overkill cvs_log() and rather use warn()/warnx().xsa2006-04-211-25/+20
| | | | OK ray@ and discussed with joris@.
* switch -p handling to bitwise flags; OK ray@.xsa2006-04-211-2/+1
|
* switch -q handling to bitwise flags; OK ray@ niallo@.xsa2006-04-191-7/+6
|
* Combine code to prompt user for input into a shared function,ray2006-04-181-33/+40
| | | | | | reducing some complex fats from ci.c. OK joris@
* Remove -h flag from rcs_getopt loop, which is not in GNU.ray2006-04-181-6/+2
| | | | OK xsa@