--- cvs-1.11.23/src/logmsg.c +++ cvs-1.11.23/src/logmsg.c @@ -226,6 +226,8 @@ do_editor (dir, messagep, repository, changes) if ((*messagep)[0] == '\0' || (*messagep)[strlen (*messagep) - 1] != '\n') (void) fprintf (fp, "\n"); + } else { + (void) fprintf (fp, "\n"); } if (repository != NULL) @@ -367,7 +369,11 @@ do_editor (dir, messagep, repository, changes) *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 (;;) { --- cvs-1.11.23/src/sanity.sh +++ cvs-1.11.23/src/sanity.sh @@ -15538,6 +15538,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: @@ -15549,6 +15550,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: @@ -15576,6 +15578,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: @@ -15587,6 +15590,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: @@ -15608,6 +15612,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: @@ -15619,6 +15624,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: