mdadm uses smaller exit codes like 0,1,2,3,4. Using ERANGE is inconsistent and not helpful. So change it to a more consistent number. Signed-off-by: NeilBrown <neilb@xxxxxxxx> --- mdadm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdadm.c b/mdadm.c index 70b16f2231b7..d80aab361264 100644 --- a/mdadm.c +++ b/mdadm.c @@ -619,7 +619,7 @@ int main(int argc, char *argv[]) c.homecluster = optarg; if (strlen(c.homecluster) > 64) { pr_err("Cluster name too big.\n"); - exit(ERANGE); + exit(2); } continue; case O(CREATE,'x'): /* number of spare (eXtra) disks */ -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html