Improved glob_to_regex function.
Improved glob_to_regex function.

This make the glob_to_regex more compatible with unix globs.
See man 7 glob.
The * and ? should never match /. Deal with dots at begining.
Fixes possible buffer overrun.

ybznek/openscap,redhatrises/openscap,ybznek/openscap,postfix/openscap,OpenSCAP/openscap,jan-cerny/openscap,redhatrises/openscap,jan-cerny/openscap,OpenSCAP/openscap,postfix/openscap,mpreisler/openscap,openprivacy/openscap,ybznek/openscap,mpreisler/openscap,mpreisler/openscap,Hexadorsimal/openscap,openprivacy/openscap,ybznek/openscap,Hexadorsimal/openscap,mpreisler/openscap,jan-cerny/openscap,ybznek/openscap,openprivacy/openscap,OpenSCAP/openscap,openprivacy/openscap,redhatrises/openscap,redhatrises/openscap,mpreisler/openscap,OpenSCAP/openscap,OpenSCAP/openscap,postfix/openscap,Hexadorsimal/openscap,openprivacy/openscap,postfix/openscap,Hexadorsimal/openscap,postfix/openscap,redhatrises/openscap,ybznek/openscap,Hexadorsimal/openscap,OpenSCAP/openscap,jan-cerny/openscap,jan-cerny/openscap,openprivacy/openscap,mpreisler/openscap,jan-cerny/openscap,redhatrises/openscap,Hexadorsimal/openscap,postfix/openscap