2014-11-05 12:41:07 +01:00

23 lines
807 B
Plaintext

$NetBSD: patch-at,v 1.4 2013/10/14 06:51:02 adam Exp $
--- src/logmsg.c.orig 2005-09-04 00:27:44.000000000 +0000
+++ src/logmsg.c
@@ -224,6 +224,8 @@ do_editor (const char *dir, char **messa
(*messagep)[strlen (*messagep) - 1] != '\n')
(void) fprintf (fp, "\n");
}
+ else
+ (void) fprintf (fp, "\n");
if (repository != NULL)
/* tack templates on if necessary */
@@ -290,7 +292,7 @@ do_editor (const char *dir, char **messa
run_setup (Editor);
run_add_arg (fname);
if ((retcode = run_exec (RUN_TTY, RUN_TTY, RUN_TTY,
- RUN_NORMAL | RUN_SIGIGNORE)) != 0)
+ RUN_NORMAL | RUN_SIGIGNORE | RUN_UNSETXID)) != 0)
error (0, retcode == -1 ? errno : 0, "warning: editor session failed");
/* put the entire message back into the *messagep variable */