python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / genpart / 0001-fix-return-code.patch
blobec18c82f8cab27b4f0d7d3e5452ee9b0f65f8282
1 genpart: return 0 if partition writen OK, with no do_magic
3 If do_magic is false, we don't won't write the 0xaa55 magic.
4 However, if we succesfully wrote the partition entry, we still
5 want to return 0 to indicate success.
7 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
8 Cc: Robert Schwebel <r.schwebel@pengutronix.de>
11 Patch sent upstream, but no mailing list.
12 Status: accepted upstream, not yet released.
14 diff -durN host-genpart-1.0.2.orig/src/genpart.c host-genpart-1.0.2/src/genpart.c
15 --- host-genpart-1.0.2.orig/src/genpart.c 2009-12-20 21:54:56.000000000 +0100
16 +++ host-genpart-1.0.2/src/genpart.c 2013-01-22 23:13:24.109752579 +0100
17 @@ -92,6 +92,8 @@
18 if (do_magic) {
19 if (fwrite(&magic, 2, 1, stdout) > 0)
20 rc=0;
21 + } else {
22 + rc=0;
25 return rc;