summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/init.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-6/+6
| | | | | | | | | 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)
* init was passing a writable file descriptor into rcs_open which was thennicm2010-10-311-2/+2
| | | | | | | | | | | | | | failing to fdopen() it as readable. It doesn't need to pass in the fd at all, so just change it to pass -1 which makes cvs init work again. In fact, the fd should never need to be writable - it is only used for reading. RCS_WRITE triggers a rewrite on the file on rcs_close() but this is done by using a temporary and rename(2) (RCS_WRITE is a poor name for the flag). So while here, add a couple of comments to hopefully make it a little clearer. There is some confusion about how this is used in other places but checking those is a separate issue. with and ok tobias
* Reduce variable/function name and whitespace differences betweenray2010-07-231-2/+2
| | | | | | cvs/rcs. OK xsa zinovik
* remove unused functions, definitions and outdated commentsjoris2009-03-251-3/+3
| | | | from the stone ages.
* Some conformance fixes:ragge2008-06-231-2/+2
| | | | | | | - Empty brackets forbidden in C99. - ? : and skipping middle argument is both disallowed and considered bad programming habit. OK ray@, xsa@.
* style, also don't use cvs_buf_* if it is realy not worth the effort.tobias2008-06-101-17/+10
| | | | ok joris
* Cleanup buf implementation:tobias2008-02-111-6/+4
| | | | | | | | | | | | * Don't check for NULL on buffer creation, because it calls fatal() when something's wrong. * All buffers are supposed to expand if there is no space left in them, so zap flags as well. * Remove code that is now dead. OK joris@ > Inspired by a diff from Igor Zinovik about unchecked return value.
* general includes cleanup sweep. ok joris@ niallo@otto2007-02-221-3/+7
|
* cvs_path_cat() removal since we can now easily handle thatxsa2007-02-171-7/+5
| | | | | functionality w/ xsnprintf(); Initial diff started by thib@. OK thib@ joris@.
* replace strl* overload and xstrdup() misuse by xsnprintf();xsa2007-02-061-6/+3
| | | | OK joris@.
* use more stack allocations for fixed size buffers. ok xsa@ joris@otto2007-01-251-6/+2
|
* make import and init work again after the small breakagejoris2007-01-131-10/+4
| | | | we had with the rcs changes;
* in a remote setup:joris2007-01-111-1/+2
| | | | | | | do not connect to the remote server until we are sure all the options passed to the commands are valid. noticed by xsa@
* cvs init remote bits.xsa2006-11-091-3/+6
|
* in preparation for the new remote code, proto.h becomes obsolete.joris2006-06-161-3/+2
|
* better usagejoris2006-06-131-2/+2
|
* bring back a working version of the `cvs init' command. OK joris@.xsa2006-06-121-93/+148
|
* fix CVS_PATH_NOTIFY duplicate.xsa2006-02-101-2/+2
|
* make cvs_init_create_files() return type void; ok joris@.xsa2006-01-081-24/+15
|
* #include's cleanup; ok joris@ niallo@.xsa2006-01-021-10/+2
|
* KNF;xsa2005-07-251-8/+8
|
* make the init command work;xsa2005-07-191-17/+52
| | | | tested aanriot@ joris@; Ok joris@.
* headers ordering (alphabetically) and cleanup, from mbalmer@ and myself;xsa2005-05-311-4/+3
|
* Merge the cvs_cmd and cvs_cmd_info structures and add the necessaryjfb2005-05-241-5/+13
| | | | | | | fields to hook local versions of the commands. This needs to go in before it gets any bigger ok joris
* more snprintf return value check; joris okxsa2005-04-161-3/+8
|
* introduce our own set of error codes used by the commands to reportjoris2005-04-121-4/+4
| | | | | | what exactly went wrong in case of an error. ok jfb@
* first round of EX_* exit codes removal; ok joris@.xsa2005-04-031-6/+5
|
* move all the client commands to the new command framework.joris2005-03-301-29/+13
| | | | | | eliminates a lot of duplicate code. ok jfb@
* fix call to rcs_open() so the file gets created, and remove thejfb2005-03-011-7/+2
| | | | explicit call to rcs_write(), it is not needed anymore
* Many improvements to the RCS support:jfb2005-02-271-2/+2
| | | | | | | | | | | | | - make it possible to specify creation and the file mode in rcs_open() - implicitly write the contents to disk on rcs_close() if the RCS handle has been changed - fix a bug in the output of the `expand' keyword - add functions to retrieve and modify the expansion mode - rcs_parse() shouldn't be available to the outside - empty string instead of `(null)' if there is no description ok Joris
* Before attempting to initialize the cvs repository, make sure we havejfb2005-01-051-1/+9
| | | | | a valid CVSROOT, and abort with the appropriate error message otherwise. Fixes a core dump spotted by jmc@
* less whitespace, more pretty. ok jfbtedu2004-12-071-11/+9
|
* tighten vertical spacing for else; jfb okderaadt2004-12-061-3/+2
|
* Make `init' work in client modejfb2004-08-121-1/+12
|
* Unused variablejfb2004-08-061-2/+1
|
* Remove remaining references to cvs_rootjfb2004-07-301-2/+5
|
* No need to import the `cvs_root' symbol anymore, it is done in cvs.hjfb2004-07-291-6/+1
|
* * document cvs_init() a bitjfb2004-07-141-2/+8
|
* * initial import from the cvs-tools modulejfb2004-07-131-0/+127