cvs commit: src/sbin/newfs newfs.c

Yar Tikhiy yar at
Tue Nov 27 23:54:43 PST 2007

yar         2007-11-28 07:54:43 UTC

  FreeBSD src repository

  Modified files:
    sbin/newfs           newfs.c 
  - Pay attention to the fact that ioctl(2) is only known to
  return -1 on error while any other return value from it can
  indicate success.  (See RETURN VALUE in our ioctl(2) manpage
  and the POSIX spec.)
  - Avoid assumptions about the state of the data buffer after
  ioctl(2) failure.
  Revision  Changes    Path
  1.84      +5 -4      src/sbin/newfs/newfs.c

More information about the cvs-src mailing list