Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367615 - sci-misc/boinc-6.10.58-r1 init.d script has a problem with the attach function
Summary: sci-misc/boinc-6.10.58-r1 init.d script has a problem with the attach function
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-17 01:14 UTC by Carlos Silva
Modified: 2011-05-22 09:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Silva 2011-05-17 01:14:53 UTC
When running /etc/init.d/boinc attach (after starting it) it asks for a project URL and an Account Key.
After that this is what get's executed:

        ebegin "Attaching to project"
                boinccmd --host localhost --passwd ${password} ${args}
        eend $?

The problem with that piece of code is the ${password} var. It get's "cat'ed" from ${RUNTIMEDIR}/gui_rpc_auth.cfg but if the file is empty (as suggested on the ebuild after install), which means no password, the password variable becomes empty and that piece of code which runs a boinccmd is missing one parameter.

just changing to:
boinccmd --host localhost --passwd "${password}" ${args}
fixes the problem

Reproducible: Always

Steps to Reproduce:
emerge boinc
clear /var/lib/boinc/gui_rpc_auth.cfg (default file path)
/etc/init.d/boinc attach
Actual Results:  
# /etc/init.d/boinc attach
    Enter the Project URL: http://setiathome.berkeley.edu/
    Enter your Account Key: <key_here>
 * Attaching to project ...
Authorization failure: -155                                                                                                                                                                              [ !! ]


Expected Results:  
project attached
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2011-05-22 09:26:05 UTC
Fixed in main tree.