1 diff -Naur ext3-tools/fsstress.c ext3-tools.new/fsstress.c 2 --- ext3-tools/fsstress.c 2004-05-17 04:49:53.000000000 -0300 3 +++ ext3-tools.new/fsstress.c 2007-07-16 14:26:20.000000000 -0300 4 @@ -487,7 +487,7 @@ 5 #endif 6 if (cleanup == 0) 7 { 8 - sprintf(cmd,"rm -rf %s",dirname); 9 + sprintf(cmd,"rm -rf %s/*",dirname); 10 system(cmd); 11 } 12 loopcntr++; 13 @@ -1453,7 +1453,7 @@ 14 if (!get_fname(FT_ANYm, r, &f, NULL, NULL, &v)) 15 append_pathname(&f, "."); 16 total = 0; 17 - bzero(&cursor, sizeof(cursor)); 18 + memset(&cursor, 0x00, sizeof(cursor)); 19 do { 20 e = attr_list_path(&f, buf, sizeof(buf), ATTR_DONTFOLLOW, 21 &cursor); 22 @@ -1471,7 +1471,7 @@ 23 return; 24 } 25 which = (int)(random() % total); 26 - bzero(&cursor, sizeof(cursor)); 27 + memset(&cursor, 0x00, sizeof(cursor)); 28 ent = 0; 29 aname = NULL; 30 do { 31