Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106201874
D40020.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
603 B
Referenced Files
None
Subscribers
None
D40020.diff
View Options
diff --git a/sbin/md5/md5.c b/sbin/md5/md5.c
--- a/sbin/md5/md5.c
+++ b/sbin/md5/md5.c
@@ -662,7 +662,7 @@
}
if (failed)
return (1);
- if (checksFailed != 0)
+ if (checksFailed > 0)
return (2);
return (0);
@@ -759,7 +759,7 @@
if (p == NULL) {
warn("%s", name);
- failed++;
+ failed = true;
} else if (cflag && mode != mode_bsd) {
checkfailed = strcasecmp(checkAgainst, p) != 0;
if (!sflag && (!qflag || checkfailed))
@@ -1001,7 +1001,7 @@
printf(" - verified correct\n");
} else {
printf(" - INCORRECT RESULT!\n");
- failed++;
+ failed = true;
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 28, 2:09 AM (8 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15619532
Default Alt Text
D40020.diff (603 B)
Attached To
Mode
D40020: md5: Don't increment a bool.
Attached
Detach File
Event Timeline
Log In to Comment