]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
seccomp_unotify.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>
Wed, 9 Jun 2021 22:40:17 +0000 (10:40 +1200)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/seccomp_unotify.2

index 9c93f0d4c4eaaf48ded0cad2b78b663ac5cb7897..8399aa734b4e6df45a76a2f2f9b991038f9267ec 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");