aboutsummaryrefslogtreecommitdiffstats
path: root/man7/unix.7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2020-10-24 10:46:28 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-06-10 10:40:17 +1200
commit166126484174024b892563201c08b3be765727dd (patch)
tree44775fd03a9fa5643da897672e44a68a21c5c1e0 /man7/unix.7
parentd1774d6af831966e45a1c69b895f6d143c98e845 (diff)
downloadman-pages-166126484174024b892563201c08b3be765727dd.tar.gz
seccomp_unotify.2: EXAMPLE: correct the check for NUL in buffer returned by read()
In the usual case, read(fd, buf, PATH_MAX) will return PATH_MAX bytes that include trailing garbage after the pathname. So the right check is to scan from the start of the buffer to see if there's a NUL, and error if there is not. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7/unix.7')
0 files changed, 0 insertions, 0 deletions