Re: Bizzare bug in find, potential security implications

2017-12-22 Thread Piotr Gackiewicz
tdocs -type f -iregex '.*\.exe$' >> > > As the OPs case just needs matches for the suffix of the basename, > I'd personally always go with good old -name: > >find htdocs -type f -name '*.exe' > > Have a nice day, > Berny > -- Piotr Gackiewicz

Fwd: Bizzare bug in find, potential security implications

2017-12-20 Thread Piotr Gackiewicz
I think, PCRE does not have this problem. What about implementing '-regextype pcre' ? Dou You think it's a good idea? Regards, 2017-12-19 23:01 GMT+01:00 Piotr Gackiewicz : > So, if it's by-design, users should be explicitly warned in man page: > > Do not rely o

Re: Bizzare bug in find, potential security implications

2017-12-18 Thread Piotr Gackiewicz
I have missed info on versions. I have tested in on: find 4.7.0-git, libc6-2.23-0ubuntu9 (Ubuntu 16.04, x86_64) find 4.4.2, glibc-2.12-1.209.el6_9.2.x86_64 (CentOS 6, x86_64) Same results. Regards, 2017-12-18 16:06 GMT+01:00 Piotr Gackiewicz : > > Hello, > > I have spotted bizarr