]> granicus.if.org Git - sudo/commitdiff
allow chunksiz to reach 1 before erroring out
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 24 Jun 2007 11:39:16 +0000 (11:39 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 24 Jun 2007 11:39:16 +0000 (11:39 +0000)
mon_systrace.c

index 810c83ebced4bc470a1fd85bb582c57181341f34..051df6a6382468fb534683dfc0c736e62f05ed56 100644 (file)
@@ -496,7 +496,7 @@ read_string(fd, pid, addr, buf, bufsiz)
            addr += nread;
            bufsiz -= nread;
        } else {
-           if (errno != EINVAL || chunksiz == 4)
+           if (errno != EINVAL || chunksiz == 1)
                    return(-1);
            chunksiz >>= 1;     /* chunksiz too big, halve it */
        }