Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jun 2010 18:34:45 +0000 (UTC)
From:      Jaakko Heinonen <jh@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sbin/bsdlabel bsdlabel.c
Message-ID:  <201006301834.o5UIYwkw059456@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jh          2010-06-30 18:34:45 UTC

  FreeBSD src repository

  Modified files:
    sbin/bsdlabel        bsdlabel.c 
  Log:
  SVN rev 209614 on 2010-06-30 18:34:45Z by jh
  
  - Don't assign the return value from read(2) to a variable of type
    int.
  - Use errx(3) instead of err(3) to print the error message on short
    reads in readlabel(). errno won't be set on short reads which can
    easily occur here due to the fixed size read request.
  
  PR:             144307
  Reviewed by:    bde
  
  Revision  Changes    Path
  1.120     +8 -6      src/sbin/bsdlabel/bsdlabel.c



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