From c9ecd79504d35568f493d7f872aabc5fb7fb0f80 Mon Sep 17 00:00:00 2001 From: Xavier Santolaria Date: Mon, 13 Feb 2006 11:02:59 +0000 Subject: write out an empty comment in RCS files even if there isn't one as gnu/usr.bin/cvs does. Found by niallo@'s automatic tool. --- usr.bin/cvs/rcs.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c index 5bfd1ae296e..92150101322 100644 --- a/usr.bin/cvs/rcs.c +++ b/usr.bin/cvs/rcs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcs.c,v 1.128 2006/02/09 08:08:56 niallo Exp $ */ +/* $OpenBSD: rcs.c,v 1.129 2006/02/13 11:02:58 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -475,12 +475,13 @@ rcs_write(RCSFILE *rfp) fprintf(fp, " strict;"); fputc('\n', fp); + fputs("comment\t@", fp); if (rfp->rf_comment != NULL) { - fputs("comment\t@", fp); rcs_strprint((const u_char *)rfp->rf_comment, strlen(rfp->rf_comment), fp); fputs("@;\n", fp); - } + } else + fputs("# @;\n", fp); if (rfp->rf_expand != NULL) { fputs("expand @", fp); -- cgit v1.2.3