Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jan 2005 19:03:40 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sbin/badsect badsect.c
Message-ID:  <200501031903.j03J3eBd044669@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2005-01-03 19:03:40 UTC

  FreeBSD src repository

  Modified files:
    sbin/badsect         badsect.c 
  Log:
  The badsect(8) utility uses atol(), which doesn't allow very good error
  checking and only recognizes numbers in base 10.  The attached patch
  checks errno after strtol() and uses a base of 0 to allow octal, or hex
  sector numbers too.
  
  PR:             73112
  Submitted by:   keramida
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.21      +4 -1      src/sbin/badsect/badsect.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501031903.j03J3eBd044669>