Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | kill const and string artithmetic related warnings; ok millert@ | 2017-08-29 | 1 | -2/+2 | |
| | |||||
* | The -I flag is documented but not implemented. This fixes that and | 2016-07-04 | 1 | -7/+10 | |
| | | | | | also honors the -I flag from ci/co when prompting like GNU RCS. OK jca@ | ||||
* | Convert xfree to free. From Fritjof Bornebusch. ok deraadt | 2015-06-13 | 1 | -15/+14 | |
| | |||||
* | Replace <sys/param.h> with <limits.h> and other less dirty headers where | 2015-01-16 | 1 | -4/+4 | |
| | | | | | | | | | 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-hard | 2014-12-01 | 1 | -2/+2 | |
| | | | | reallocarray()... so rename it. | ||||
* | Zap some stored values never read; From Fritjof Bornebusch; ok nicm@ | 2014-10-10 | 1 | -3/+1 | |
| | |||||
* | use calloc, from Benjamin Baier | 2014-05-29 | 1 | -5/+3 | |
| | |||||
* | remove wrong casts; ok millert | 2013-04-16 | 1 | -2/+2 | |
| | |||||
* | add missing header needed by futimes() | 2010-12-06 | 1 | -1/+2 | |
| | | | | ok tobias@ xsa@ nicm@ | ||||
* | Remove the need for rp_file in parser structure, instead keep only one | 2010-10-20 | 1 | -4/+7 | |
| | | | | | | | | | FILE pointer in RCSFILE. This fixes some ugliness in closing an fdopen()ed FILE and its underlying file descriptor. Notified by Joerg Sonnenberger <joerg at britannica dot bec to de> discussed with and ok nicm | ||||
* | Set rcs_suffixes to default value on initialization. | 2010-09-08 | 1 | -5/+1 | |
| | | | | ok ray zinovik | ||||
* | Make BUFs autoextend by default. This was already done in OpenCVS | 2010-07-28 | 1 | -4/+4 | |
| | | | | | | a while ago. OK zinovik nicm | ||||
* | Reduce variable/function name and whitespace differences between | 2010-07-23 | 1 | -10/+10 | |
| | | | | | | cvs/rcs. OK xsa zinovik | ||||
* | properly free suffixes. | 2008-05-10 | 1 | -1/+3 | |
| | | | | OK tobias@ | ||||
* | remove unused function | 2008-01-04 | 1 | -11/+1 | |
| | | | | | | from tobias@ ok xsa@ tobias@ | ||||
* | Sync with cvs: | 2007-07-19 | 1 | -2/+2 | |
| | | | | | | | | | > xcalloc is unneeded here since i is always 0 and we always use the > memory after initializing it. > > Initial diff from Igor Zinovik. > > OK niallo and xsa. | ||||
* | Since xrealloc dies on failure it is safe to directly assign to the | 2007-05-29 | 1 | -4/+2 | |
| | | | | | | | | | original pointer. Theo agrees, and so does the rest of the tree (ssh, etc. all do this already). Saves a bunch of variables and assignments. OK niallo@ | ||||
* | As done in OpenCVS, general includes cleanup sweep. OK otto@. | 2007-02-27 | 1 | -2/+9 | |
| | |||||
* | If a ,suffix file is given as an arg to ci and co, strip it. Avoids | 2007-02-22 | 1 | -1/+21 | |
| | | | | potential disasters. Initial diff from niallo@, ok niallo@ joris@ | ||||
* | Fix const inconsistencies, void pointer artithmetic; | 2007-02-22 | 1 | -3/+3 | |
| | | | | Based on diff from otto@ in OpenCVS. OK otto@. | ||||
* | remove some un-needed buffer NUL-termination. in openrcs, diff3 is already NUL-terminating its | 2007-01-11 | 1 | -4/+2 | |
| | | | | | | | buffers so we don't need to do it twice. this allows us to sync rcs_splitlines() with opencvs' cvs_splitlines(). ok joris@ | ||||
* | Clear EOF before prompting user for input. | 2007-01-10 | 1 | -1/+3 | |
| | | | | | | Fixes PR 5342. OK joris@ and xsa@. | ||||
* | - fix support for checking out binary files. | 2007-01-02 | 1 | -30/+20 | |
| | | | | | testing from xsa@ and Igor Sobrado <igor at string1.ciencias.uniovi.es> ok xsa@ | ||||
* | Simplify stripping of write bits from file mode. | 2006-11-09 | 1 | -10/+13 | |
| | | | | | | Add support for reusing the checkin message for multiple files, ala GNU Fix the message when you abort a checkout and the file was not writable. OK joris@ niallo@ | ||||
* | - convert some warnx() to warn(), which fixes a few stupidly un-informative error messages (found by tom@) | 2006-10-12 | 1 | -3/+4 | |
| | | | | | | - make rcs_choosefile() save wrt errno, input from ray@ ok joris@ xsa@ | ||||
* | Remove debugging printf accidentally committed. | 2006-09-25 | 1 | -2/+1 | |
| | | | | OK joris@. | ||||
* | - handle deltatexts which don't end in a newline character. fixes PR #5241. | 2006-09-22 | 1 | -2/+3 | |
| | | | | ok ray@ | ||||
* | Use S_IS* macros insted of masking with S_IF* flags. The latter may | 2006-09-19 | 1 | -2/+2 | |
| | | | | | have multiple bits set, which lead to surprising results. Spotted by Paul Stoeber, more to come. ok millert@ pedro@ jaredy@ djm@ | ||||
* | Improve rcs_buf_load() by setting errno appropriately on failure and | 2006-08-16 | 1 | -3/+6 | |
| | | | | | | | | | | never print errors or quit on error. Fix usages of rcs_buf_load() and rcs_set_description. Also plug an fd leak. OK xsa@ | ||||
* | rcs_splitlines() can never return NULL, so don't check for it. | 2006-07-08 | 1 | -6/+3 | |
| | | | | OK joris@ | ||||
* | - plug a memory leak | 2006-07-04 | 1 | -1/+3 | |
| | |||||
* | - correctly handle binary files; say bye bye to using c strings for deltatexts. | 2006-06-03 | 1 | -15/+21 | |
| | | | | "slap it in" joris@ | ||||
* | Remove a lot of xstrdup() calls in getopt() loops, which are usually | 2006-05-28 | 1 | -3/+3 | |
| | | | | | | | 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@ | ||||
* | Rename RCSFILE.fd to RCSFILE.rf_fd, plus minor spacing nits. No | 2006-05-27 | 1 | -3/+3 | |
| | | | | | | binary change. OK xsa@ | ||||
* | Remove rcs_statfile(). It was just a wrapper for rcs_choosefile(), | 2006-05-27 | 1 | -22/+1 | |
| | | | | | | handling exceptions oddly. OK joris@ | ||||
* | rcs_choosefile() no longer returns char *, it returns a file | 2006-05-27 | 1 | -4/+3 | |
| | | | | | | | | descriptor; fix comment. Improve spacing. OK joris@ | ||||
* | Remove unused variable leftover from race condition cleanup. | 2006-05-09 | 1 | -6/+3 | |
| | | | | OK xsa@. | ||||
* | Use warnx() when errno is not set. | 2006-05-08 | 1 | -2/+2 | |
| | | | | OK joris@. | ||||
* | Check return values for all strlcpy, and strlcat calls. | 2006-04-29 | 1 | -3/+5 | |
| | | | | OK xsa@ and probably others. | ||||
* | zap util.[ch] and move the content into rcsutil.[ch]. | 2006-04-27 | 1 | -1/+155 | |
| | | | | discussed with joris@. | ||||
* | prevent file races by obtaining an fd for the RCS file and | 2006-04-26 | 1 | -46/+57 | |
| | | | | | | | | 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. | 2006-04-26 | 1 | -13/+13 | |
| | | | | | | | 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. | 2006-04-25 | 1 | -2/+2 | |
| | |||||
* | fatal() -> err()/errx() as we try to not depend on heavy cvs_log(). | 2006-04-25 | 1 | -11/+11 | |
| | | | | OK joriski. | ||||
* | o Better match GNU behavior (a bare -t does NOT read from stdin, | 2006-04-24 | 1 | -1/+33 | |
| | | | | | | | | 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; | 2006-04-21 | 1 | -0/+445 | |
"the voices in my head say OK!" joris@. |