]> granicus.if.org Git - sudo/commit
Remove artificial limit on length of pattern and string. It is
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 10 Dec 2014 21:00:12 +0000 (14:00 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 10 Dec 2014 21:00:12 +0000 (14:00 -0700)
commitd0c333969a6aebbf5d6be270f6758930a6b882bb
treecc104e145804e750d91de7a06e1ba78ae68664b8
parentb1dc5c54d8c03aeee72447a38efdba75219e5fc3
Remove artificial limit on length of pattern and string.  It is
possible to use fnmatch() on things other than paths (such as
arguments) so a limit of PATH_MAX does not make sense.  Fixes a bug
where rules would fail to match if the length of the arguments were
larger than PATH_MAX (usually 1024).
lib/util/fnmatch.c