Also marking for hardy. This sounds like a good SRU. However, I'm not happy with the patch yet:
- It introduces new strings, which needs to be avoided for i18n reasons.
- Hardcoding "admin" sounds wrong to me. Shouldn't it rather just check whether the user/group already exists? The current code does
} else if (!user && login_exists (login)) {
So what about changing login_exists() to also check for the group with the same name? That would solve the issue more generically and avoid string changes.
Also marking for hardy. This sounds like a good SRU. However, I'm not happy with the patch yet:
- It introduces new strings, which needs to be avoided for i18n reasons.
- Hardcoding "admin" sounds wrong to me. Shouldn't it rather just check whether the user/group already exists? The current code does
} else if (!user && login_exists (login)) {
So what about changing login_exists() to also check for the group with the same name? That would solve the issue more generically and avoid string changes.