[Pkg-zsh-commits] [zsh] 01/02: Cherry-pick upstream crash fix to handle failure of gettempname() in namedpipe()

Axel Beckert abe at deuxchevaux.org
Mon Jun 29 19:33:03 UTC 2015


This is an automated email from the git hooks/post-receive script.

abe pushed a commit to branch debian
in repository zsh.

commit 143736dad5e7093a27885fe75a496a797337ff73
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Mon Jun 29 21:16:24 2015 +0200

    Cherry-pick upstream crash fix to handle failure of gettempname() in namedpipe()
---
 ...handle-failure-of-gettempname-in-namedpipe.patch | 21 +++++++++++++++++++++
 debian/patches/series                               |  1 +
 2 files changed, 22 insertions(+)

diff --git a/debian/patches/cherry-pick-ef080283-handle-failure-of-gettempname-in-namedpipe.patch b/debian/patches/cherry-pick-ef080283-handle-failure-of-gettempname-in-namedpipe.patch
new file mode 100644
index 0000000..37bc9cd
--- /dev/null
+++ b/debian/patches/cherry-pick-ef080283-handle-failure-of-gettempname-in-namedpipe.patch
@@ -0,0 +1,21 @@
+commit ef080283468cbd7b46ceb19c148cd0b9c4d52356
+Author: Barton E. Schaefer <schaefer at zsh.org>
+Date:   Sat Jun 27 12:50:40 2015 -0700
+
+    35634: handle failure of gettempname() in namedpipe()
+
+diff --git a/Src/exec.c b/Src/exec.c
+index 50a11eb..39d1326 100644
+--- a/Src/exec.c
++++ b/Src/exec.c
+@@ -4133,6 +4133,10 @@ namedpipe(void)
+ {
+     char *tnam = gettempname(NULL, 1);
+ 
++    if (!tnam) {
++	zerr("failed to create named pipe: %e", errno);
++	return NULL;
++    }
+ # ifdef HAVE_MKFIFO
+     if (mkfifo(tnam, 0600) < 0){
+ # else
diff --git a/debian/patches/series b/debian/patches/series
index 1158165..6d0d852 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 further-mitigate-test-suite-hangs.patch
+cherry-pick-ef080283-handle-failure-of-gettempname-in-namedpipe.patch
 cherry-pick-811027a2-fix-signal-queueing-in-zcontext_save_partial-790282.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/zsh.git



More information about the Pkg-zsh-commits mailing list