Control: tags -1 + upstream fixed-upstream

Hi Christopher

On 2016-01-14 18:24:23, Christopher Wellons wrote:
> Package: zathura
> Version: 0.3.1-2
> Severity: normal
> 
> Zathura continues processing arguments after the end-of-arguments
> marker (--). This is due to the use of g_spawn_async() in main.c. The
> child process re-parses the command line, but since it lacks the
> double-dash it potentially interprets the filename as an option.

This code is no longer present 0.3.4. It has been rewritten to no longer parse
the command line arguments in the child process again.

> For example, name PDF file "-o.pdf" and run:
> 
>     zathura -- -o.pdf
> 
> Which will result in:
> 
>     error: Unknown file type: '(null)'
>     error: Error parsing command line arguments: Unknown option -o.pdf
> 
> (The first error message is due to a bug in glib, where it passes "--"
> as if it were file argument, but this *only* happens if one of the
> filenames looks like an option. I discovered this while trying to
> write a patch to correct it.)

This seems to be expected behavior according to [1]. zathura now ignores the
extra -- [2].

Cheers

[1] 
https://developer.gnome.org/glib/stable/glib-Commandline-option-parser.html#g-option-context-parse
[2] 
https://git.pwmt.org/pwmt/zathura/commit/fec81cf40b0a9d7aad95298d22edff6f2ac7ec77
-- 
Sebastian Ramacher

Attachment: signature.asc
Description: PGP signature

Reply via email to