svn commit: r248474 - stable/9/sbin/recoverdisk
Xin LI
delphij at FreeBSD.org
Mon Mar 18 20:36:26 UTC 2013
Author: delphij
Date: Mon Mar 18 20:36:25 2013
New Revision: 248474
URL: http://svnweb.freebsd.org/changeset/base/248474
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
Modified:
stable/9/sbin/recoverdisk/recoverdisk.c
Directory Properties:
stable/9/sbin/recoverdisk/ (props changed)
Modified: stable/9/sbin/recoverdisk/recoverdisk.c
==============================================================================
--- stable/9/sbin/recoverdisk/recoverdisk.c Mon Mar 18 20:22:40 2013 (r248473)
+++ stable/9/sbin/recoverdisk/recoverdisk.c Mon Mar 18 20:36:25 2013 (r248474)
@@ -156,7 +156,7 @@ main(int argc, char * const argv[])
int error, 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-stable-9
mailing list