lotherk
b1acf1629b
builtin: a read error is not the end of the file
...
`slurp` and `read` treated ferror() as EOF: `edit` then took the truncated
prefix for the whole file and wrote it back, and `read` silently showed
fewer lines. Both now report the error and name the path.
`search` still skips a file it cannot read - it only reports hits, and a
file it cannot open is not a hit - but it no longer claims a clean scan.
Evidence:
edit /proc/self/mem -> "error: /proc/self/mem: Input/output error"
(before: "is empty")
read /proc/self/mem -> "[...: read error after line 0: Input/output error]"
edit <dir> -> "Is a directory"
With the three ferror() guards removed, tests/test_builtin.c fails at
lines 221, 227 and the directory cases; with them the test is green.
make check: all tests passed, 21 suites. check_asan: 45 binaries clean.
2026-11-23 01:32:38 +00:00
..
2026-11-21 21:26:43 +00:00
2026-11-19 00:05:05 +00:00
2026-11-18 23:16:26 +00:00
2026-11-18 23:03:09 +00:00
2026-11-13 19:35:41 +00:00
2026-11-16 14:06:54 +00:00
2026-11-17 12:31:58 +00:00
2026-11-10 06:04:58 +00:00
2026-11-22 13:20:45 +00:00
2026-11-11 22:12:26 +00:00
2026-11-22 13:20:45 +00:00
2026-11-12 03:30:32 +00:00
2026-11-22 08:25:42 +00:00
2026-11-22 17:31:36 +00:00
2026-11-10 08:49:27 +00:00
2026-11-19 00:05:05 +00:00
2026-11-23 01:11:56 +00:00
2026-11-23 01:11:56 +00:00
2026-11-16 14:06:54 +00:00
2026-11-10 06:04:58 +00:00
2026-11-21 21:26:43 +00:00
2026-11-23 01:11:56 +00:00
2026-11-21 21:26:43 +00:00
2026-11-21 21:26:43 +00:00
2026-11-10 08:07:24 +00:00
2026-11-22 15:27:54 +00:00
2026-11-21 21:26:43 +00:00
2026-11-18 23:03:09 +00:00
2026-11-18 23:16:26 +00:00
2026-11-21 21:26:43 +00:00
2026-11-08 20:19:01 +00:00
2026-11-22 10:26:06 +00:00
2026-11-21 21:26:43 +00:00
2026-11-11 10:25:49 +00:00
2026-11-07 08:06:34 +00:00
2026-11-23 01:32:38 +00:00
2026-11-22 20:09:41 +00:00
2026-11-22 11:34:21 +00:00
2026-11-21 21:25:51 +00:00
2026-11-18 23:16:26 +00:00
2026-11-20 16:45:36 +00:00
2026-11-18 23:03:09 +00:00
2026-11-21 21:25:51 +00:00
2026-11-11 17:13:20 +00:00
2026-11-18 23:03:09 +00:00
2026-11-23 00:47:34 +00:00
2026-11-22 23:19:12 +00:00
2026-11-21 21:25:51 +00:00
2026-11-22 23:57:00 +00:00
2026-11-22 22:52:51 +00:00
2026-11-23 00:56:58 +00:00
2026-11-23 01:11:56 +00:00
2026-11-22 17:31:36 +00:00
2026-11-18 23:03:09 +00:00
2026-11-18 06:48:01 +00:00
2026-11-12 03:22:49 +00:00
2026-11-17 19:13:59 +00:00
2026-11-17 10:10:47 +00:00
2026-11-18 23:03:09 +00:00
2026-11-08 20:50:33 +00:00
2026-11-21 21:26:43 +00:00
2026-11-18 23:16:26 +00:00
2026-11-18 12:22:52 +00:00
2026-11-09 22:46:25 +00:00
2026-11-18 23:03:09 +00:00
2026-11-10 08:56:23 +00:00
2026-11-13 20:52:46 +00:00
2026-11-11 22:12:26 +00:00
2026-11-22 21:32:31 +00:00
2026-11-16 16:27:03 +00:00
2026-11-09 22:46:25 +00:00
2026-11-21 21:26:43 +00:00
2026-11-18 23:16:26 +00:00
2026-11-18 23:03:09 +00:00
2026-11-23 00:13:49 +00:00
2026-11-22 13:20:45 +00:00
2026-11-08 13:44:32 +00:00
2026-11-22 13:20:10 +00:00
2026-11-18 23:03:09 +00:00
2026-11-08 13:00:47 +00:00
2026-11-18 23:03:09 +00:00
2026-11-20 16:45:36 +00:00
2026-11-07 08:06:34 +00:00
2026-11-07 13:34:26 +00:00
2026-11-22 23:39:57 +00:00
2026-11-22 08:25:42 +00:00
2026-11-16 17:48:22 +00:00