mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
fix comments to be non-recursive
Signed-Off-By: Kees Cook <kees.cook@canonical.com>
This commit is contained in:
parent
627c044e4d
commit
c4c430dcd0
1 changed files with 19 additions and 20 deletions
|
@ -186,26 +186,25 @@ static pattern_t convert_aaregex_to_pcre(const char *aare, int anchor,
|
|||
} else {
|
||||
if ((dptr > pcre) && *(dptr - 1) == '/') {
|
||||
#if 0
|
||||
/* handle comment containing use
|
||||
* of C comment characters
|
||||
* /* /*/ and /** to describe paths
|
||||
*
|
||||
* modify what is emitted for * and **
|
||||
* when used as the only path
|
||||
* component
|
||||
* ex.
|
||||
* /* /*/ /**/ /**
|
||||
* this prevents these expressions
|
||||
* from matching directories or
|
||||
* invalid paths
|
||||
* in these case * and ** must
|
||||
* match at least 1 character to
|
||||
* get a valid path element.
|
||||
* ex.
|
||||
* /foo/* -> should not match /foo/
|
||||
* /foo/*bar -> should match /foo/bar
|
||||
* /*/foo -> should not match //foo
|
||||
*/
|
||||
// handle comment containing use
|
||||
// of C comment characters
|
||||
// /* /*/ and /** to describe paths
|
||||
//
|
||||
// modify what is emitted for * and **
|
||||
// when used as the only path
|
||||
// component
|
||||
// ex.
|
||||
// /* /*/ /**/ /**
|
||||
// this prevents these expressions
|
||||
// from matching directories or
|
||||
// invalid paths
|
||||
// in these case * and ** must
|
||||
// match at least 1 character to
|
||||
// get a valid path element.
|
||||
// ex.
|
||||
// /foo/* -> should not match /foo/
|
||||
// /foo/*bar -> should match /foo/bar
|
||||
// /*/foo -> should not match //foo
|
||||
#endif
|
||||
const char *s = sptr;
|
||||
while (*s == '*')
|
||||
|
|
Loading…
Add table
Reference in a new issue