OpenBSD CVS

CVS log for src/usr.bin/cvs/init.c


[BACK] Up to [local] / src / usr.bin / cvs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.42 / (download) - annotate - [select for diffs], Mon Oct 25 10:07:12 2021 UTC (2 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, HEAD
Changes since 1.41: +3 -4 lines
Diff to previous 1.41 (colored)

do not need a temporary one time use variable which befuddles

Revision 1.41 / (download) - annotate - [select for diffs], Mon Aug 28 19:33:20 2017 UTC (6 years, 8 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.40: +5 -5 lines
Diff to previous 1.40 (colored)

fix const related warnings; ok millert@

Revision 1.40 / (download) - annotate - [select for diffs], Thu Jun 1 08:08:24 2017 UTC (6 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.39: +4 -3 lines
Diff to previous 1.39 (colored)

Stop looking at current_cvsroot->cr_method to figure out if we're remote or not.

Instead use cvsroot_is_local() and cvsroot_is_remote().

Revision 1.39 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:07 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.38: +6 -6 lines
Diff to previous 1.38 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
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)

Revision 1.38 / (download) - annotate - [select for diffs], Sun Oct 31 15:37:34 2010 UTC (13 years, 6 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

init was passing a writable file descriptor into rcs_open which was then
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

Revision 1.37 / (download) - annotate - [select for diffs], Fri Jul 23 21:46:05 2010 UTC (13 years, 9 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

Reduce variable/function name and whitespace differences between
cvs/rcs.

OK xsa zinovik

Revision 1.36 / (download) - annotate - [select for diffs], Wed Mar 25 21:19:20 2009 UTC (15 years, 1 month ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

remove unused functions, definitions and outdated comments
from the stone ages.

Revision 1.35 / (download) - annotate - [select for diffs], Mon Jun 23 20:51:08 2008 UTC (15 years, 10 months ago) by ragge
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

Some conformance fixes:
- Empty brackets forbidden in C99.
- ? : and skipping middle argument is both disallowed and considered bad
  programming habit.
OK ray@, xsa@.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Jun 10 15:50:31 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.33: +10 -17 lines
Diff to previous 1.33 (colored)

style, also don't use cvs_buf_* if it is realy not worth the effort.

ok joris

Revision 1.33 / (download) - annotate - [select for diffs], Mon Feb 11 20:33:11 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.32: +4 -6 lines
Diff to previous 1.32 (colored)

Cleanup buf implementation:

* 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.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Feb 22 06:42:09 2007 UTC (17 years, 2 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.31: +7 -3 lines
Diff to previous 1.31 (colored)

general includes cleanup sweep. ok joris@ niallo@

Revision 1.31 / (download) - annotate - [select for diffs], Sat Feb 17 18:23:43 2007 UTC (17 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.30: +5 -7 lines
Diff to previous 1.30 (colored)

cvs_path_cat() removal since we can now easily handle that
functionality w/ xsnprintf(); Initial diff started by thib@.
OK thib@ joris@.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Feb 6 17:34:06 2007 UTC (17 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.29: +3 -6 lines
Diff to previous 1.29 (colored)

replace strl* overload and xstrdup() misuse by xsnprintf();
OK joris@.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Jan 25 18:56:33 2007 UTC (17 years, 3 months ago) by otto
Branch: MAIN
Changes since 1.28: +2 -6 lines
Diff to previous 1.28 (colored)

use more stack allocations for fixed size buffers. ok xsa@ joris@

Revision 1.28 / (download) - annotate - [select for diffs], Sat Jan 13 20:29:46 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.27: +4 -10 lines
Diff to previous 1.27 (colored)

make import and init work again after the small breakage
we had with the rcs changes;

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jan 11 02:35:55 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

in a remote setup:
do not connect to the remote server until we are sure all the options
passed to the commands are valid.

noticed by xsa@

Revision 1.26 / (download) - annotate - [select for diffs], Thu Nov 9 14:00:14 2006 UTC (17 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.25: +6 -3 lines
Diff to previous 1.25 (colored)

cvs init remote bits.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jun 16 14:07:42 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.24: +2 -3 lines
Diff to previous 1.24 (colored)

in preparation for the new remote code, proto.h becomes obsolete.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Jun 13 06:52:11 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

better usage

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jun 12 13:56:00 2006 UTC (17 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.22: +147 -92 lines
Diff to previous 1.22 (colored)

bring back a working version of the `cvs init' command. OK joris@.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Feb 10 10:15:48 2006 UTC (18 years, 3 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

fix CVS_PATH_NOTIFY duplicate.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Jan 8 18:02:06 2006 UTC (18 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.20: +15 -24 lines
Diff to previous 1.20 (colored)

make cvs_init_create_files() return type void; ok joris@.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jan 2 08:11:56 2006 UTC (18 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.19: +2 -10 lines
Diff to previous 1.19 (colored)

#include's cleanup; ok joris@ niallo@.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jul 25 12:05:43 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.18: +8 -8 lines
Diff to previous 1.18 (colored)

KNF;

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jul 19 15:30:37 2005 UTC (18 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.17: +52 -17 lines
Diff to previous 1.17 (colored)

make the init command work;
tested aanriot@ joris@; Ok joris@.

Revision 1.17 / (download) - annotate - [select for diffs], Tue May 31 08:58:48 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.16: +3 -4 lines
Diff to previous 1.16 (colored)

headers ordering (alphabetically) and cleanup, from mbalmer@ and myself;

Revision 1.16 / (download) - annotate - [select for diffs], Tue May 24 04:12:25 2005 UTC (19 years ago) by jfb
Branch: MAIN
Changes since 1.15: +13 -5 lines
Diff to previous 1.15 (colored)

Merge the cvs_cmd and cvs_cmd_info structures and add the necessary
fields to hook local versions of the commands.  This needs to go in
before it gets any bigger

ok joris

Revision 1.15 / (download) - annotate - [select for diffs], Sat Apr 16 20:05:05 2005 UTC (19 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.14: +8 -3 lines
Diff to previous 1.14 (colored)

more snprintf return value check; joris ok

Revision 1.14 / (download) - annotate - [select for diffs], Tue Apr 12 14:58:40 2005 UTC (19 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored)



introduce our own set of error codes used by the commands to report
what exactly went wrong in case of an error.

ok jfb@

Revision 1.13 / (download) - annotate - [select for diffs], Sun Apr 3 17:32:50 2005 UTC (19 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.12: +5 -6 lines
Diff to previous 1.12 (colored)

first round of EX_* exit codes removal; ok joris@.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Mar 30 17:43:04 2005 UTC (19 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.11: +13 -29 lines
Diff to previous 1.11 (colored)



move all the client commands to the new command framework.
eliminates a lot of duplicate code.

ok jfb@

Revision 1.11 / (download) - annotate - [select for diffs], Tue Mar 1 21:14:21 2005 UTC (19 years, 2 months ago) by jfb
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.10: +2 -7 lines
Diff to previous 1.10 (colored)

fix call to rcs_open() so the file gets created, and remove the
explicit call to rcs_write(), it is not needed anymore

Revision 1.10 / (download) - annotate - [select for diffs], Sun Feb 27 00:22:08 2005 UTC (19 years, 2 months ago) by jfb
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

Many improvements to the RCS support:

- 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

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jan 5 18:34:01 2005 UTC (19 years, 4 months ago) by jfb
Branch: MAIN
Changes since 1.8: +9 -1 lines
Diff to previous 1.8 (colored)

Before attempting to initialize the cvs repository, make sure we have
a valid CVSROOT, and abort with the appropriate error message
otherwise.  Fixes a core dump spotted by jmc@

Revision 1.8 / (download) - annotate - [select for diffs], Tue Dec 7 17:10:56 2004 UTC (19 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.7: +9 -11 lines
Diff to previous 1.7 (colored)

less whitespace, more pretty.  ok jfb

Revision 1.7 / (download) - annotate - [select for diffs], Mon Dec 6 21:03:12 2004 UTC (19 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +2 -3 lines
Diff to previous 1.6 (colored)

tighten vertical spacing for else; jfb ok

Revision 1.6 / (download) - annotate - [select for diffs], Thu Aug 12 20:09:58 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.5: +11 -0 lines
Diff to previous 1.5 (colored)

Make `init' work in client mode

Revision 1.5 / (download) - annotate - [select for diffs], Fri Aug 6 14:09:24 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.4: +0 -1 lines
Diff to previous 1.4 (colored)

Unused variable

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jul 30 23:12:13 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.3: +4 -1 lines
Diff to previous 1.3 (colored)

Remove remaining references to cvs_root

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jul 29 18:23:25 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.2: +0 -5 lines
Diff to previous 1.2 (colored)

No need to import the `cvs_root' symbol anymore, it is done in cvs.h

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jul 14 00:46:48 2004 UTC (19 years, 10 months ago) by jfb
Branch: MAIN
Changes since 1.1: +7 -1 lines
Diff to previous 1.1 (colored)

* document cvs_init() a bit

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Tue Jul 13 22:02:40 2004 UTC (19 years, 10 months ago) by jfb
Branch: OpenCVS
CVS Tags: OpenCVS_0_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

* initial import from the cvs-tools module

Revision 1.1 / (download) - annotate - [select for diffs], Tue Jul 13 22:02:40 2004 UTC (19 years, 10 months ago) by jfb
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.