#440 closed Defect (fixed)
BM on Unix: fails to create new account if fifth field in /etc/passwd is empty
Reported by: | fthomas | Owned by: | romw |
---|---|---|---|
Priority: | Minor | Milestone: | Undetermined |
Component: | Manager | Version: | |
Keywords: | patch | Cc: |
Description
Hi,
Please have a look at this detailed bug report http://bugs.debian.org/447320. Summary: The BOINC Manager fails to create an account under certain conditions with the error "missing or bad parameter: user_name". The cause for this is that the fifth field in /etc/passwd for the user that started the BM is empty and therefore ai->user_name in clientgui/ProjectProcessingPage.cpp:
ai->user_name = (const char*)::wxGetUserName().mb_str();
is also empty. My proposed solution is to check whether ai->user_name after the wxGetUserName() call is empty and if it is use the output of wxGetUserId() as ai->user_name. According to the wxWidgets manual this function returns the first field of /etc/passwd - the login name - on Unix. I've attached a patch against the current trunk which fixes this bug. Of course I've verified that it really fixes it.
If you want to I can check this in myself.
Thanks, Frank
Attachments (1)
Change History (6)
Changed 17 years ago by
Attachment: | use_uid_if_user_name_is_empty.patch added |
---|
comment:1 Changed 17 years ago by
comment:2 Changed 17 years ago by
Keywords: | patch added |
---|
comment:4 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
We've had a similar report in this BOINC forum thread, although that one was for 5.8.16 and the workaround given works.