From dfa976593e6e8cc0b6b2549c758ca084b768f5d8 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Sun, 17 Mar 2013 08:19:44 +0000 Subject: package/genpart: new host-only package Signed-off-by: "Yann E. MORIN" Tested-by: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- package/genpart/genpart-fix-return-code.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 package/genpart/genpart-fix-return-code.patch (limited to 'package/genpart/genpart-fix-return-code.patch') diff --git a/package/genpart/genpart-fix-return-code.patch b/package/genpart/genpart-fix-return-code.patch new file mode 100644 index 000000000..ec18c82f8 --- /dev/null +++ b/package/genpart/genpart-fix-return-code.patch @@ -0,0 +1,25 @@ +genpart: return 0 if partition writen OK, with no do_magic + +If do_magic is false, we don't won't write the 0xaa55 magic. +However, if we succesfully wrote the partition entry, we still +want to return 0 to indicate success. + +Signed-off-by: "Yann E. MORIN" +Cc: Robert Schwebel + +-- +Patch sent upstream, but no mailing list. +Status: accepted upstream, not yet released. + +diff -durN host-genpart-1.0.2.orig/src/genpart.c host-genpart-1.0.2/src/genpart.c +--- host-genpart-1.0.2.orig/src/genpart.c 2009-12-20 21:54:56.000000000 +0100 ++++ host-genpart-1.0.2/src/genpart.c 2013-01-22 23:13:24.109752579 +0100 +@@ -92,6 +92,8 @@ + if (do_magic) { + if (fwrite(&magic, 2, 1, stdout) > 0) + rc=0; ++ } else { ++ rc=0; + } + } + return rc; -- cgit v1.2.3