Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2018-01-29 14:54:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "bash" Mon Jan 29 14:54:57 2018 rev:141 rq:569479 version:unknown Changes: -------- --- /work/SRC/openSUSE:Factory/bash/bash.changes 2017-12-12 21:19:17.573076938 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2018-01-29 14:55:00.209401332 +0100 @@ -1,0 +2,6 @@ +Wed Jan 24 12:40:17 UTC 2018 - [email protected] + +- Modify patch bash-4.3-pathtemp.patch to avoid crash at full + file system (boo#1076909) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ bash.spec ++++++ --- /var/tmp/diff_new_pack.gxQE1Q/_old 2018-01-29 14:55:01.681332565 +0100 +++ /var/tmp/diff_new_pack.gxQE1Q/_new 2018-01-29 14:55:01.685332378 +0100 @@ -1,7 +1,7 @@ # # spec file for package bash # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed ++++++ bash-4.3-pathtemp.patch ++++++ --- /var/tmp/diff_new_pack.gxQE1Q/_old 2018-01-29 14:55:01.781327893 +0100 +++ /var/tmp/diff_new_pack.gxQE1Q/_new 2018-01-29 14:55:01.781327893 +0100 @@ -1,9 +1,9 @@ --- - lib/sh/tmpfile.c | 43 +++++++++++++++++++++++++++++++++++++++++++ - 1 file changed, 43 insertions(+) + lib/sh/tmpfile.c | 49 ++++++++++++++++++++++++++++++++++++++++++++++++- + 1 file changed, 48 insertions(+), 1 deletion(-) --- lib/sh/tmpfile.c -+++ lib/sh/tmpfile.c 2016-07-14 12:22:06.681051058 +0000 ++++ lib/sh/tmpfile.c 2018-01-24 12:38:42.410481352 +0000 @@ -36,6 +36,14 @@ #include <stdio.h> #include <errno.h> @@ -60,14 +60,16 @@ static char * get_tmpdir (flags) int flags; -@@ -188,6 +223,7 @@ sh_mktmpfd (nameroot, flags, namep) +@@ -186,7 +221,8 @@ sh_mktmpfd (nameroot, flags, namep) + { + char *filename, *tdir, *lroot; int fd, tdlen; - - filename = (char *)xmalloc (PATH_MAX + 1); +- ++ +enospace: + filename = (char *)xmalloc (PATH_MAX + 1); tdir = get_tmpdir (flags); tdlen = strlen (tdir); - @@ -201,6 +237,10 @@ sh_mktmpfd (nameroot, flags, namep) free (filename); filename = NULL; @@ -79,12 +81,16 @@ if (namep) *namep = filename; return fd; -@@ -219,6 +259,9 @@ sh_mktmpfd (nameroot, flags, namep) +@@ -219,6 +259,13 @@ sh_mktmpfd (nameroot, flags, namep) } while (fd < 0 && errno == EEXIST); + if (fd < 0 && errno == ENOSPC && emergency_sys_tmpdir()) -+ goto enospace; ++ { ++ free (filename); ++ filename = NULL; ++ goto enospace; ++ } + if (namep) *namep = filename;
