After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 768806 - gdbus tool must swallow -- argument
gdbus tool must swallow -- argument
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gdbus
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2016-07-14 13:40 UTC by Stephan Bergmann
Modified: 2016-07-17 00:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix (4.29 KB, patch)
2016-07-14 13:41 UTC, Stephan Bergmann
committed Details | Review

Description Stephan Bergmann 2016-07-14 13:40:16 UTC
"gdbus emit" and "gdbus call" each need to explicitly ignore the first (if any) "--" command line argument.  Both use g_option_context_parse to obtain their arguments, and, according to <https://developer.gnome.org/glib/2.48/glib-Commandline-option-parser.html#g-option-context-parse>:  "A '--' option is stripped from argv unless there are unparsed options before and after it, or some of the options after it start with '-'."
Comment 1 Stephan Bergmann 2016-07-14 13:41:36 UTC
Created attachment 331494 [details] [review]
fix
Comment 2 Matthias Clasen 2016-07-15 20:08:40 UTC
Review of attachment 331494 [details] [review]:

ok