https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276043

--- Comment #5 from Ricardo Branco <rbra...@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.

Reply via email to