unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 45667c8e4bf9c509e5c7d0554461b021bdc92137 849 bytes (raw)
name: gnu/packages/patches/shadow-4.4-su-snprintf-fix.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
fix from upstream

From 67d2bb6e0a5ac124ce1f026dd5723217b1493194 Mon Sep 17 00:00:00 2001
From: Serge Hallyn <serge@hallyn.com>
Date: Sun, 18 Sep 2016 21:31:18 -0500
Subject: [PATCH] su.c: fix missing length argument to snprintf

---
 src/su.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/su.c b/src/su.c
index 0c50a9456afd..93ffd2fbe2b4 100644
--- a/src/su.c
+++ b/src/su.c
@@ -373,8 +373,8 @@ static void prepare_pam_close_session (void)
 		              stderr);
 		(void) kill (-pid_child, caught);
 
-		snprintf (kill_msg, _(" ...killed.\n"));
-		snprintf (wait_msg, _(" ...waiting for child to terminate.\n"));
+		snprintf (kill_msg, 256, _(" ...killed.\n"));
+		snprintf (wait_msg, 256, _(" ...waiting for child to terminate.\n"));
 
 		(void) signal (SIGALRM, kill_child);
 		(void) alarm (2);
-- 
2.11.0.rc2


debug log:

solving 45667c8e4 ...
found 45667c8e4 in https://yhetil.org/guix-devel/20170119200636.2767-3-contact.ng0@cryptolab.net/

applying [1/1] https://yhetil.org/guix-devel/20170119200636.2767-3-contact.ng0@cryptolab.net/
diff --git a/gnu/packages/patches/shadow-4.4-su-snprintf-fix.patch b/gnu/packages/patches/shadow-4.4-su-snprintf-fix.patch
new file mode 100644
index 000000000..45667c8e4

1:23: space before tab in indent.
 		              stderr);
1:24: space before tab in indent.
 		(void) kill (-pid_child, caught);
1:25: trailing whitespace.
 
1:30: trailing whitespace.
 
1:31: space before tab in indent.
 		(void) signal (SIGALRM, kill_child);
Checking patch gnu/packages/patches/shadow-4.4-su-snprintf-fix.patch...
Applied patch gnu/packages/patches/shadow-4.4-su-snprintf-fix.patch cleanly.
warning: squelched 3 whitespace errors
warning: 8 lines add whitespace errors.

index at:
100644 45667c8e4bf9c509e5c7d0554461b021bdc92137	gnu/packages/patches/shadow-4.4-su-snprintf-fix.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).