PIN code request fails due to error in /usr/bin/pinwrapper

Bug #45142 reported by John Gaughan
This bug report is a duplicate of:  Bug #33338: bluez-utils can't start in dbus mode. Edit Remove
10
Affects Status Importance Assigned to Milestone
bluez-utils (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Binary package hint: bluez-utils

Hi,

the "!" is missing from the shebang line of /usr/bin/pinwrapper. This causes it to fail when called by hcid with this error:
    May 16 23:08:45 morbius hcid[14173]: PIN helper exited abnormally with code 256

This is with bluez-utils 2.24-0ubuntu6 in dapper.

Revision history for this message
Laurent Bigonville (bigon) wrote :

Can be easily corrected

Changed in bluez-utils:
status: Unconfirmed → Confirmed
Revision history for this message
Emmet Hikory (persia) wrote : patch for pinwrapper

The attached patch adds the required ! to pinwrapper.

Revision history for this message
Peter Meiser (meiser79) wrote : corrected pinwrapper patch

Emmet: shouldn't the ! be after #, not before?

Revision history for this message
Emmet Hikory (persia) wrote :

Yes. Sorry.

Revision history for this message
Matthias Grüter (mgrueter) wrote :

Are you sure the problem lies in pinwrapper? I still got the same error ("PIN helper exited abnormally") after using the corrected patch.
However the following explanation applies to me: http://ubuntuforums.org/showthread.php?t=113903
According to this "the pin helper program that prompts you for a PIN cannot connect to your display because it is running as root". By running "xhost +" this can be solved. However this is a ugly trick and should have been set up differently in the first place.

Revision history for this message
Pete Ryland (pdr) wrote :

Note that running "xhost +" is really not recommended. In some cases, you're opening a big security hole, allowing anyone to connect to your machine's X server. Someone can log you out for example. For the above problem, doing "xhost +localhost" is a *much* safer option. The DISPLAY environment variable may not be set correctly anyway.

Anyway, the more recent versions use dbus for the pin instead. pinwrapper is obsolete now.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.