Hello community, here is the log from the commit of package powerpc-utils for openSUSE:Factory checked in at 2016-04-03 23:04:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/powerpc-utils (Old) and /work/SRC/openSUSE:Factory/.powerpc-utils.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "powerpc-utils" Changes: -------- --- /work/SRC/openSUSE:Factory/powerpc-utils/powerpc-utils.changes 2016-03-26 15:22:05.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.powerpc-utils.new/powerpc-utils.changes 2016-04-03 23:04:18.000000000 +0200 @@ -1,0 +2,6 @@ +Tue Mar 29 22:27:52 UTC 2016 - dvaleev@suse.com + +- Fix nvram 0001-nvram-Correct-valid-partition-name-checking.patch + bsc#970463 + +------------------------------------------------------------------- New: ---- 0001-nvram-Correct-valid-partition-name-checking.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ powerpc-utils.spec ++++++ --- /var/tmp/diff_new_pack.PpwJdC/_old 2016-04-03 23:04:19.000000000 +0200 +++ /var/tmp/diff_new_pack.PpwJdC/_new 2016-04-03 23:04:19.000000000 +0200 @@ -43,6 +43,7 @@ Source1: nvsetenv Patch1: powerpc-utils-lsprop.patch Patch2: ofpathname_powernv.patch +Patch3: 0001-nvram-Correct-valid-partition-name-checking.patch ExclusiveArch: ppc ppc64 ppc64le %description @@ -53,6 +54,7 @@ %setup -q %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build ./autogen.sh ++++++ 0001-nvram-Correct-valid-partition-name-checking.patch ++++++
From bd7e19a9ff5aebe741b0520906660dac1ecf4a2a Mon Sep 17 00:00:00 2001 From: Nathan Fontenot <nfont@linux.vnet.ibm.com> Date: Fri, 25 Mar 2016 07:27:58 -0400 Subject: [PATCH] nvram: Correct valid partition name checking
A recent update to not allow long names had a bug in that it did not correctly check the return value when verifying a partition name. Fixes: b15b0a7f9ffc (nvram: don't allow long names) Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com> CC: Joel Stanley <joel@jms.id.au> --- src/nvram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvram.c b/src/nvram.c index 3c20b76..0bb5250 100644 --- a/src/nvram.c +++ b/src/nvram.c @@ -491,7 +491,7 @@ nvram_find_fd_partition(struct nvram *nvram, char *name) int len; int found = 0; - if (part_name_valid(name)) + if (!part_name_valid(name)) return -1; if (lseek(nvram->fd, SEEK_SET, 0) == -1) { -- 2.1.4