Date: Sat, 29 Mar 2008 13:43:37 +0000 (UTC) From: Remko Lodder <remko@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/route route.c Message-ID: <200803291343.m2TDhbCC041105@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
remko 2008-03-29 13:43:37 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_7)
sbin/route route.c
Log:
MFC rev 1.84 route.c
In route.c in newroute() there's a call to exit(0) if the command was
'get'. Since rtmsg() always gets called and returns 0 on success and -1
on failure, it's possible to exit with a suitable exit code by calling
exit(ret != 0) instead, as is done at the end of newroute().
PR: bin/112303
Submitted by: bruce@cran.org.uk
MFC after: 1 week
Approved by: imp (mentor, implicit)
Revision Changes Path
1.81.2.2 +1 -1 src/sbin/route/route.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803291343.m2TDhbCC041105>
