Patchwork ybin succeeds but returns error code

login
register
mail settings
Submitter Anton Blanchard
Date Feb. 6, 2009, 12:19 a.m.
Message ID <20090206001926.GA23273@kryten>
Download mbox | patch
Permalink /patch/23007/
State Accepted
Headers show

Comments

Anton Blanchard - Feb. 6, 2009, 12:19 a.m.
Hi,

On a System p box, ybin returns an error even though it succeeds:

# ybin 
# echo $?
1

The patch below fixes it:

# ybin 
# echo $?
0

Signed-off-by: Anton Blanchard <anton@samba.org>
---

Patch

diff --git a/ybin/ybin b/ybin/ybin
index 379b94b..cf58db9 100755
--- a/ybin/ybin
+++ b/ybin/ybin
@@ -1152,6 +1152,7 @@  raw_install()
     fi
     sync ; sync
     [ "$VERBOSE" = 1 ] && echo "$PRG: Installation successful"
+    return 0
 }
 
 ## make sure the first stage ofboot generator is compatible.