Compare commits
2 Commits
1f4faf21e8
...
a85daa0dfb
Author | SHA1 | Date |
---|---|---|
Lennart Poettering | a85daa0dfb | |
Piero La Terza | 36e4a8f22a |
|
@ -778,10 +778,10 @@ bool valid_user_group_name_or_id_full(const char *u, bool strict) {
|
|||
if (isempty(u))
|
||||
return false;
|
||||
|
||||
if (valid_user_group_name_full(u, strict))
|
||||
if (parse_uid(u, NULL) >= 0)
|
||||
return true;
|
||||
|
||||
return parse_uid(u, NULL) >= 0;
|
||||
return valid_user_group_name_full(u, strict);
|
||||
}
|
||||
|
||||
bool valid_gecos(const char *d) {
|
||||
|
|
|
@ -295,7 +295,7 @@ static int handle_generic_user_record_error(
|
|||
|
||||
if (sd_bus_error_has_name(error, BUS_ERROR_HOME_ABSENT))
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EREMOTE),
|
||||
"Home of user %s is currently absent, please plug in the necessary stroage device or backing file system.", user_name);
|
||||
"Home of user %s is currently absent, please plug in the necessary storage device or backing file system.", user_name);
|
||||
|
||||
else if (sd_bus_error_has_name(error, BUS_ERROR_AUTHENTICATION_LIMIT_HIT))
|
||||
return log_error_errno(SYNTHETIC_ERRNO(ETOOMANYREFS),
|
||||
|
|
Loading…
Reference in New Issue