svn commit: r248638 - stable/8/sbin/recoverdisk

Xin LI delphij at FreeBSD.org
Sat Mar 23 07:36:54 UTC 2013


Author: delphij
Date: Sat Mar 23 07:36:53 2013
New Revision: 248638
URL: http://svnweb.freebsd.org/changeset/base/248638

Log:
  MFC r248279:
  
  Correct type for DIOCGSTRIPESIZE.  Without this there
  would be a stack overflow which will crash the program
  later.
  
  PR:		bin/176953
  Submitted by:	r4721 tormail org
  Approved by:	re (rodrigc)

Modified:
  stable/8/sbin/recoverdisk/recoverdisk.c
Directory Properties:
  stable/8/sbin/recoverdisk/   (props changed)

Modified: stable/8/sbin/recoverdisk/recoverdisk.c
==============================================================================
--- stable/8/sbin/recoverdisk/recoverdisk.c	Sat Mar 23 07:24:06 2013	(r248637)
+++ stable/8/sbin/recoverdisk/recoverdisk.c	Sat Mar 23 07:36:53 2013	(r248638)
@@ -156,7 +156,7 @@ main(int argc, char * const argv[])
 	int error, flags, state;
 	u_char *buf;
 	u_int sectorsize;
-	u_int stripesize;
+	off_t stripesize;
 	time_t t1, t2;
 	struct stat sb;
 	u_int n, snapshot = 60;


More information about the svn-src-all mailing list