[Bug 276043] md5(1) et al are broken when reading the last argument because of capsicum(4) code
Date: Tue, 02 Jan 2024 22:15:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276043
--- Comment #5 from Ricardo Branco <rbranco@suse.com> ---
(In reply to Ricardo Branco from comment #4)
wc(1) also fails because of capsicum as this patch is not enough:
```
- if (S_ISREG(sb.st_mode)) {
+ /* Don't do it on pseudo-filesystems that advertize a zero size
*/
+ if (S_ISREG(sb.st_mode) && sb.st_size > 0) {
```
It now returns the result of a truncated read:
```
$ /usr/obj/usr/src/amd64.amd64/usr.bin/wc/wc -m /compat/linux/proc/cpuinfo
3549 /compat/linux/proc/cpuinfo
```
--
You are receiving this mail because:
You are the assignee for the bug.