components/openscap/patches/textfilecontent54.c.patch
changeset 3595 3fab3649e6cd
parent 3594 ec73a5dd77e2
child 3596 042f4e7a6dbe
equal deleted inserted replaced
3594:ec73a5dd77e2 3595:3fab3649e6cd
     1 Fixed issue with textfilecontent54 not matching patterns in certain files on 
       
     2 solaris.
       
     3 
       
     4 --- openscap-0.9.7/src/OVAL/probes/independent/textfilecontent54.c.~1~	2013-04-23 06:21:51.427000001 -0700
       
     5 +++ openscap-0.9.7/src/OVAL/probes/independent/textfilecontent54.c	2013-08-20 09:38:16.335266038 -0700
       
     6 @@ -72,7 +72,11 @@
       
     7  	for (i = 0; i < ovector_len; ++i)
       
     8  		ovector[i] = -1;
       
     9  
       
    10 +#if defined(__SVR4) && defined(__sun)
       
    11 +	rc = pcre_exec(re, NULL, str, strlen(str), *ofs, PCRE_NO_UTF8_CHECK, ovector, ovector_len);
       
    12 +#else
       
    13  	rc = pcre_exec(re, NULL, str, strlen(str), *ofs, 0, ovector, ovector_len);
       
    14 +#endif
       
    15  
       
    16  	if (rc < -1) {
       
    17  		return -1;