mirror of https://github.com/mkerrisk/man-pages
seccomp_unotify.2: wfix in example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
5c12cebdf2
commit
e4db7ae69d
|
@ -1235,7 +1235,7 @@ getTargetPathname(struct seccomp_notif *req, int notifyFd,
|
|||
/* Read bytes at the location containing the pathname argument
|
||||
(i.e., the first argument) of the mkdir(2) call */
|
||||
|
||||
ssize_t s = pread(procMemFd, path, PATH_MAX, req\->data.args[0]);
|
||||
ssize_t s = pread(procMemFd, path, len, req\->data.args[0]);
|
||||
if (s == \-1)
|
||||
errExit("pread");
|
||||
|
||||
|
|
Loading…
Reference in New Issue