Compare commits

..

No commits in common. "a85daa0dfb3eb03be9845760e90e54b9af8fb00e" and "1f4faf21e8fc0605c1ee2b2c6ad4eedee1ab1825" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -778,10 +778,10 @@ bool valid_user_group_name_or_id_full(const char *u, bool strict) {
if (isempty(u)) if (isempty(u))
return false; return false;
if (parse_uid(u, NULL) >= 0) if (valid_user_group_name_full(u, strict))
return true; return true;
return valid_user_group_name_full(u, strict); return parse_uid(u, NULL) >= 0;
} }
bool valid_gecos(const char *d) { bool valid_gecos(const char *d) {

View File

@ -295,7 +295,7 @@ static int handle_generic_user_record_error(
if (sd_bus_error_has_name(error, BUS_ERROR_HOME_ABSENT)) if (sd_bus_error_has_name(error, BUS_ERROR_HOME_ABSENT))
return log_error_errno(SYNTHETIC_ERRNO(EREMOTE), return log_error_errno(SYNTHETIC_ERRNO(EREMOTE),
"Home of user %s is currently absent, please plug in the necessary storage device or backing file system.", user_name); "Home of user %s is currently absent, please plug in the necessary stroage device or backing file system.", user_name);
else if (sd_bus_error_has_name(error, BUS_ERROR_AUTHENTICATION_LIMIT_HIT)) else if (sd_bus_error_has_name(error, BUS_ERROR_AUTHENTICATION_LIMIT_HIT))
return log_error_errno(SYNTHETIC_ERRNO(ETOOMANYREFS), return log_error_errno(SYNTHETIC_ERRNO(ETOOMANYREFS),