Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102706115
D45219.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
575 B
Referenced Files
None
Subscribers
None
D45219.diff
View Options
diff --git a/usr.bin/diff/diffreg_new.c b/usr.bin/diff/diffreg_new.c
--- a/usr.bin/diff/diffreg_new.c
+++ b/usr.bin/diff/diffreg_new.c
@@ -218,10 +218,14 @@
rc = D_ERROR;
goto done;
}
+ if (left.atomizer_flags & DIFF_ATOMIZER_FILE_TRUNCATED)
+ warnx("%s truncated", file1);
if (diff_atomize_file(&right, cfg, f2, (uint8_t *)str2, st2.st_size, diff_flags)) {
rc = D_ERROR;
goto done;
}
+ if (right.atomizer_flags & DIFF_ATOMIZER_FILE_TRUNCATED)
+ warnx("%s truncated", file2);
result = diff_main(cfg, &left, &right);
if (result->rc != DIFF_RC_OK) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 3:21 AM (21 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14669565
Default Alt Text
D45219.diff (575 B)
Attached To
Mode
D45219: diff: Warn if the atomizer detected truncation.
Attached
Detach File
Event Timeline
Log In to Comment