bin/12489: /sbin/route exits with 0 on some errors

[ Available lists | Index of freebsd-bugs | Month of Jul 1999 | Week of 2 Jul 1999 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
<larse@isi.edu>
Date
2 Jul 1999 15:00:06
Subject
bin/12489: /sbin/route exits with 0 on some errors
Message-ID
19990702215516.6F4B114C42@hub.freebsd.org


[ Hide this part ]
 
>Number: 12489
>Category: bin
>Synopsis: /sbin/route exits with 0 on some errors
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Jul 2 15:00:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator: Lars Eggert
>Release: 3.1-RELEASE
>Organization:
USC/ISI
>Environment:
FreeBSD tan-e.isi.edu 3.1-RELEASE FreeBSD 3.1-RELEASE #2: Wed Jun 30 13:03:07 PDT 1999 larse@tan-e.isi.edu:/usr/src/sys/compile/XBONE-KAME-063099 i386

>Description:
route returns 0, even when exiting with an error.
This makes it difficult to use it in scripts.
>How-To-Repeat:
tan-e# route add 10.10.10.10 -interface lo0
add host 10.10.10.10: gateway lo0
tan-e# route add 10.10.10.10 -interface lo0
route: writing to routing socket: File exists
add host 10.10.10.10: gateway lo0: File exists
tan-e# echo $status
0

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Elapsed time: 0.122 seconds