Control: severity 958143 normal

On 2020-04-19 Thorsten Glaser <t...@mirbsd.de> wrote:
> Package: findutils
> Version: 4.7.0-1
> Severity: critical
> Justification: breaks unrelated software

> $ mkdir ./-a
> $ mkdir ./-a/b
> $ find ./-a
> ./-a
> ./-a/b
> $ find -- ./-a
> ./-a
> ./-a/b
> $ find -- -a  
> find: invalid expression; you have used a binary operator '-a' with nothing 
> before it.

> One normally uses the “--” precisely *because* arbitrary input shouldn’t
> be confused with an option. This is even documented in the manpage:

>      39        ately after the last path name.  The five `real' options -H, 
> -L, -P, -D
>      40        and -O must appear before the first path name, if  at  all.   
> A  double
>      41        dash -- can also be used to signal that any remaining 
> arguments are not
>      42        options (though ensuring that all start points begin with  
> either  `./'
>      43        or  `/'  is  generally  safer if you use wildcards in the list 
> of start
>      44        points).

I do not think this is going to break any software not using find.
Adjusting severity.

cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'

Reply via email to