Date: Sat, 22 Mar 2008 13:52:19 +0100 (CET) From: "Remko Lodder" <remko@FreeBSD.org> To: "Remko Lodder" <remko@FreeBSD.org> Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sbin/route route.c Message-ID: <64241.195.64.94.120.1206190339.squirrel@galain.elvandar.org> In-Reply-To: <200803221250.m2MCoiJQ093586@repoman.freebsd.org> References: <200803221250.m2MCoiJQ093586@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, March 22, 2008 1:50 pm, Remko Lodder wrote: > remko 2008-03-22 12:50:44 UTC > > FreeBSD src repository > > Modified files: > sbin/route route.c > Log: > 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 > > Revision Changes Path > 1.84 +1 -1 src/sbin/route/route.c > ^^^ Oeps: Approved by: imp (mentor, implicit trivial changes) -- /"\ Best regards, | remko@FreeBSD.org \ / Remko Lodder | remko@EFnet X http://www.evilcoder.org/ | / \ ASCII Ribbon Campaign | Against HTML Mail and News
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?64241.195.64.94.120.1206190339.squirrel>