Date: Wed, 28 Nov 2007 07:54:43 +0000 (UTC) From: Yar Tikhiy <yar@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/newfs newfs.c Message-ID: <200711280754.lAS7shrQ057938@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
yar 2007-11-28 07:54:43 UTC
FreeBSD src repository
Modified files:
sbin/newfs newfs.c
Log:
- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711280754.lAS7shrQ057938>
