A couple fixes in add_rule() for XFLG_ABS_IF_SLASH:
authorWayne Davison <wayned@samba.org>
Sat, 22 Mar 2008 19:30:43 +0000 (12:30 -0700)
committerWayne Davison <wayned@samba.org>
Sat, 22 Mar 2008 19:30:43 +0000 (12:30 -0700)
commit4c74d44dabd887a5b865e95e8fca697f9084b40f
tree97ffa92517d40a9a56e666f0de73d520ed0c8ac6
parent4a86fbcda0f4514d13a1a93fa553d47ce139299e
A couple fixes in add_rule() for XFLG_ABS_IF_SLASH:
- Remove the trailing slash earlier, so that it doesn't
  affect the XFLG_ABS_IF_SLASH check.
- Count the slashes earlier so that the XFLG_ABS_IF_SLASH
  can use it instead of using a strchr() all that could
  scan past the end of the input.
exclude.c