Created attachment 54161 [details] [review] Patch against dbus-1.4.12 to add this feature. dbus-send(1) cannot currently send file descriptors, although the underlying dbus protocol can. Add support for same, with a new syntax "fd:<n>". Patch attached.
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.