Kenneth R Westerback | 11 Jul 2012 12:27
Picon
Favicon

CVS: cvs.openbsd.org: src

CVSROOT:	/cvs
Module name:	src
Changes by:	krw <at> cvs.openbsd.org	2012/07/11 04:27:34

Modified files:
	sbin/fdisk     : misc.h part.c misc.c cmd.c 

Log message:
Simplify guts and calling of getuint(). Eliminate a useless 'help'
capablity by using help text as regular prompt for 'size' and
'offset'. Try to detect and handle more overflow/underflow conditions
in getuint() and ensure returned value is always within requested
bounds. Handle zero-length partitions by treating them as UNUSED.

tested & ok halex <at> 


Gmane