diff -uprk.orig cvs-1.11.19.orig/src/logmsg.c cvs-1.11.19/src/logmsg.c --- cvs-1.11.19.orig/src/logmsg.c 2005-02-01 01:13:45 +0300 +++ cvs-1.11.19/src/logmsg.c 2005-04-06 15:26:14 +0400 @@ -230,6 +230,8 @@ do_editor (dir, messagep, repository, ch if ((*messagep)[0] == '\0' || (*messagep)[strlen (*messagep) - 1] != '\n') (void) fprintf (fp, "\n"); + } else { + (void) fprintf (fp, "\n"); } if (repository != NULL) @@ -368,7 +370,11 @@ do_editor (dir, messagep, repository, ch *messagep = NULL; } - if (pre_stbuf.st_mtime == post_stbuf.st_mtime || *messagep == NULL) + if (pre_stbuf.st_mtime == post_stbuf.st_mtime || + *messagep == NULL || + (*messagep)[0] == '\0' || + strcmp (*messagep, "\n") == 0 || + strcmp (*messagep, "\n\n") == 0) { for (;;) { diff -uprk.orig cvs-1.11.19.orig/src/sanity.sh cvs-1.11.19/src/sanity.sh --- cvs-1.11.19.orig/src/sanity.sh 2005-02-03 17:50:54 +0300 +++ cvs-1.11.19/src/sanity.sh 2005-04-06 15:27:30 +0400 @@ -14923,6 +14923,7 @@ description: revision 1\.1 date: [0-9/]* [0-9:]*; author: ${username}; state: Exp; branches: 1\.1\.2; +x xCVS: ---------------------------------------------------------------------- xCVS: Enter Log. Lines beginning with .CVS:. are removed automatically xCVS: @@ -14934,6 +14935,7 @@ xCVS: ---------------------------------- ---------------------------- revision 1\.1\.2\.1 date: [0-9/]* [0-9:]*; author: ${username}; state: Exp; lines: ${PLUS}1 -0 +x xCVS: ---------------------------------------------------------------------- xCVS: Enter Log. Lines beginning with .CVS:. are removed automatically xCVS: @@ -14961,6 +14963,7 @@ description: revision 1\.1 date: [0-9/]* [0-9:]*; author: ${username}; state: Exp; branches: 1\.1\.2; +x xCVS: ---------------------------------------------------------------------- xCVS: Enter Log. Lines beginning with .CVS:. are removed automatically xCVS: @@ -14972,6 +14975,7 @@ xCVS: ---------------------------------- ---------------------------- revision 1\.1\.2\.1 date: [0-9/]* [0-9:]*; author: ${username}; state: Exp; lines: ${PLUS}1 -0 +x xCVS: ---------------------------------------------------------------------- xCVS: Enter Log. Lines beginning with .CVS:. are removed automatically xCVS: @@ -14993,6 +14997,7 @@ description: revision 1\.1 date: [0-9/]* [0-9:]*; author: ${username}; state: Exp; branches: 1\.1\.2; +x xCVS: ---------------------------------------------------------------------- xCVS: Enter Log. Lines beginning with .CVS:. are removed automatically xCVS: @@ -15004,6 +15009,7 @@ xCVS: ---------------------------------- ---------------------------- revision 1\.1\.2\.1 date: [0-9/]* [0-9:]*; author: ${username}; state: Exp; lines: ${PLUS}1 -0 +x xCVS: ---------------------------------------------------------------------- xCVS: Enter Log. Lines beginning with .CVS:. are removed automatically xCVS: