]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
seccomp_user_notif.2: wfix in example program
authorMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 16 Oct 2020 08:58:38 +0000 (10:58 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 25 Oct 2020 21:08:30 +0000 (22:08 +0100)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/seccomp_user_notif.2

index 86d19f4a7bbec9730be7e8a177b0913b643d0fc9..67e83bde12fbb027d3f483826bc005c2f304ed40 100644 (file)
@@ -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");