summaryrefslogtreecommitdiff
path: root/devel/scmcvs/patches/patch-at
blob: 0fdec7a74268151b6fb2f2b7ef0378a4b47f5e80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$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 */