OpenBSD CVS

CVS log for src/usr.bin/rcs/rcsparse.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.16 / (download) - annotate - [select for diffs], Fri Aug 26 09:02:54 2016 UTC (7 years, 8 months ago) by guenther
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, 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, OPENBSD_6_1_BASE, OPENBSD_6_1, HEAD
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

Pull in <time.h> for struct tm, used in rcs.h

ok deraadt@

Revision 1.15 / (download) - annotate - [select for diffs], Sat Jun 13 20:15:21 2015 UTC (8 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.14: +6 -7 lines
Diff to previous 1.14 (colored)

Convert xfree to free. From Fritjof Bornebusch. ok deraadt

Revision 1.14 / (download) - annotate - [select for diffs], Mon Dec 1 21:58:46 2014 UTC (9 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

An internal function called xrealloc() is actually a fail-hard
reallocarray()... so rename it.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Nov 22 18:01:09 2014 UTC (9 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

not compiled before commit

Revision 1.12 / (download) - annotate - [select for diffs], Sat Nov 22 15:51:40 2014 UTC (9 years, 5 months ago) by tobias
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Fixed uninitialized pointer (and other struct entries while at it)
which is referenced while parsing invalid RCS files.

Spotted by jsg.

ok deraadt

Revision 1.11 / (download) - annotate - [select for diffs], Sun Nov 16 19:14:34 2014 UTC (9 years, 6 months ago) by bluhm
Branch: MAIN
Changes since 1.10: +9 -8 lines
Diff to previous 1.10 (colored)

Convert the logic in rcsparse_warnx().  Instead of creating a
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@

Revision 1.10 / (download) - annotate - [select for diffs], Fri Oct 10 08:15:25 2014 UTC (9 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.9: +1 -3 lines
Diff to previous 1.9 (colored)

Zap some stored values never read; From Fritjof Bornebusch; ok nicm@

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jun 3 17:04:35 2013 UTC (10 years, 11 months ago) by jcs
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
Changes since 1.8: +25 -3 lines
Diff to previous 1.8 (colored)

properly handle commitid tokens found in rcs files

ok deraadt

Revision 1.8 / (download) - annotate - [select for diffs], Sat Feb 4 21:22:32 2012 UTC (12 years, 3 months ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Sync rcsparse between OpenCVS/OpenRCS.  Spaces, no binary change.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jul 14 16:38:39 2011 UTC (12 years, 10 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored)

spacing, no binary change.

Revision 1.6 / (download) - annotate - [select for diffs], Wed May 4 17:37:33 2011 UTC (13 years ago) by nicm
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Fix a typo in a comment, from Michael W Bombardieri.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Mar 27 18:22:50 2011 UTC (13 years, 1 month ago) by jasper
Branch: MAIN
Changes since 1.4: +1 -4 lines
Diff to previous 1.4 (colored)

- remove unused variables

from Michael W. Bombardieri
ok chl@ nicm@

Revision 1.4 / (download) - annotate - [select for diffs], Wed Oct 20 19:53:53 2010 UTC (13 years, 7 months ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.3: +11 -17 lines
Diff to previous 1.3 (colored)

Remove the need for rp_file in parser structure, instead keep only one
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

Revision 1.3 / (download) - annotate - [select for diffs], Wed Oct 20 06:51:26 2010 UTC (13 years, 7 months ago) by tobias
Branch: MAIN
Changes since 1.2: +7 -9 lines
Diff to previous 1.2 (colored)

Prevent a NULL pointer dereference if rcsparse_deltatexts is called with
a revision not specified as delta in an RCS file.

Spotted by and ok zinovik

Revision 1.2 / (download) - annotate - [select for diffs], Fri Oct 15 09:58:25 2010 UTC (13 years, 7 months ago) by tobias
Branch: MAIN
Changes since 1.1: +3 -7 lines
Diff to previous 1.1 (colored)

No need to remove RCS_PARSE flag from rf_flags after successfully parsing.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Oct 15 08:44:12 2010 UTC (13 years, 7 months ago) by tobias
Branch: MAIN

Replaced RCS parser code with new rcsparse.{c,h}:
- be very strict about things we parse
- print more information about errors if they occur
- do not fatal() directly in parser, give caller a chance to react
- fix an rcs design issue when it comes to login names

tested by many on tech@

ok xsa

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.