Summary: | Feature request: support for file descriptors in dbus-send | ||
---|---|---|---|
Product: | dbus | Reporter: | Elly Jones <ellyjones+fd> |
Component: | core | Assignee: | D-Bus Maintainers <dbus> |
Status: | RESOLVED MOVED | QA Contact: | D-Bus Maintainers <dbus> |
Severity: | enhancement | ||
Priority: | medium | CC: | msniko14 |
Version: | 1.5 | Keywords: | patch |
Hardware: | All | ||
OS: | All | ||
Whiteboard: | review- | ||
i915 platform: | i915 features: | ||
Attachments: | Patch against dbus-1.4.12 to add this feature. |
Description
Elly Jones
2011-12-06 12:11:43 UTC
Comment on attachment 54161 [details] [review] Patch against dbus-1.4.12 to add this feature. Review of attachment 54161 [details] [review]: ----------------------------------------------------------------- ::: tools/dbus-send.c @@ +67,4 @@ > double d; > unsigned char byte; > dbus_bool_t v_BOOLEAN; > + int _int; "int fd" seems better? @@ +138,5 @@ > } > break; > > + case DBUS_TYPE_UNIX_FD: > + _int = strtoul (value, NULL, 0); Shouldn't this be base 10? I don't think we want to support things like fd:010 interpreted as octal (decimal 8!) or fd:0x10 interpreted as hex. It should exit with an error if value isn't a valid base-10 integer. -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/dbus/dbus/issues/60. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.