[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We take 90% chance two times in the "unmangled" path in
generate_pathname(); looks accidental to me.
---
 files.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/files.c b/files.c
index 3319eef..ef44ee2 100644
--- a/files.c
+++ b/files.c
@@ -362,8 +362,7 @@ char * generate_pathname(void)
 
 	case 0 ... 90:
 		/* 90% chance of returning an unmangled filename */
-		if ((rand() % 100) > 10)
-			return pathname;
+		return pathname;
 
 	case 91 ... 99:
 		/* Create a bogus filename. */
-- 
1.8.1.4

--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux