mirror of
https://github.com/systemd/systemd
synced 2025-09-22 13:24:45 +02:00
Compare commits
2 Commits
1f4faf21e8
...
a85daa0dfb
Author | SHA1 | Date | |
---|---|---|---|
![]() |
a85daa0dfb | ||
![]() |
36e4a8f22a |
@ -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 (valid_user_group_name_full(u, strict))
|
if (parse_uid(u, NULL) >= 0)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return parse_uid(u, NULL) >= 0;
|
return valid_user_group_name_full(u, strict);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool valid_gecos(const char *d) {
|
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))
|
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 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))
|
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),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user