Bug 26763

Summary: D-Bus ./configure check for abstract unix socket is wrong
Product: dbus Reporter: Yury G. Kudryashov <urkud>
Component: coreAssignee: Havoc Pennington <hp>
Status: RESOLVED DUPLICATE QA Contact: John (J5) Palmieri <johnp>
Severity: normal    
Priority: medium    
Version: 1.2.x   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: abstract socket patch

Description Yury G. Kudryashov 2010-02-25 15:51:27 UTC
The test program to check for abstract socet namespace uses SUN_LEN() macros in bind() . This doesn't work because SUN_LEN uses strlen(), thus considering "\0/tmp/dbus-..." as empty. As a result, this program tries to connect to normal unix socket with pathname "" instead of abstract socket (look at strace -e bind output).

Patch by Ali Polatel is attached.
Comment 1 Steev Klimaszewski 2010-04-11 06:19:35 UTC
Created attachment 34886 [details] [review]
abstract socket patch

This patch was never attached, so I searched out where Ali had it (Exherbo's git repository) - so I'm attaching it now, in the hopes it will eventually get applied.
Comment 2 Simon McVittie 2011-01-24 07:38:20 UTC
Fixed in git for 1.4.4/1.5.0

*** This bug has been marked as a duplicate of bug 29895 ***

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.