cvs commit: src/sbin/route route.c

Remko Lodder remko at FreeBSD.org
Sat Mar 22 05:50:44 PDT 2008


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 at cran.org.uk
  MFC after:      1 week
  
  Revision  Changes    Path
  1.84      +1 -1      src/sbin/route/route.c


More information about the cvs-all mailing list