Bug 26763 - D-Bus ./configure check for abstract unix socket is wrong
Summary: D-Bus ./configure check for abstract unix socket is wrong
Status: RESOLVED DUPLICATE of bug 29895
Alias: None
Product: dbus
Classification: Unclassified
Component: core (show other bugs)
Version: 1.2.x
Hardware: Other Linux (All)
: medium normal
Assignee: Havoc Pennington
QA Contact: John (J5) Palmieri
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-25 15:51 UTC by Yury G. Kudryashov
Modified: 2011-01-24 07:38 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
abstract socket patch (1005 bytes, patch)
2010-04-11 06:19 UTC, Steev Klimaszewski
Details | Splinter Review

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.