Merge pull request #11450 from keszybz/drop-nolegacy
Drop unused NOLEGACY define
This commit is contained in:
commit
37b8602fb8
|
@ -339,7 +339,6 @@ char **strv_env_unset(char **l, const char *p) {
|
|||
}
|
||||
|
||||
char **strv_env_unset_many(char **l, ...) {
|
||||
|
||||
char **f, **t;
|
||||
|
||||
if (!l)
|
||||
|
@ -408,7 +407,6 @@ int strv_env_replace(char ***l, char *p) {
|
|||
}
|
||||
|
||||
char **strv_env_set(char **x, const char *p) {
|
||||
|
||||
_cleanup_strv_free_ char **ret = NULL;
|
||||
size_t n, m;
|
||||
char **k;
|
||||
|
|
|
@ -733,10 +733,6 @@ int maybe_setgroups(size_t size, const gid_t *list) {
|
|||
}
|
||||
|
||||
bool synthesize_nobody(void) {
|
||||
|
||||
#ifdef NOLEGACY
|
||||
return true;
|
||||
#else
|
||||
/* Returns true when we shall synthesize the "nobody" user (which we do by default). This can be turned off by
|
||||
* touching /etc/systemd/dont-synthesize-nobody in order to provide upgrade compatibility with legacy systems
|
||||
* that used the "nobody" user name and group name for other UIDs/GIDs than 65534.
|
||||
|
@ -750,7 +746,6 @@ bool synthesize_nobody(void) {
|
|||
cache = access("/etc/systemd/dont-synthesize-nobody", F_OK) < 0;
|
||||
|
||||
return cache;
|
||||
#endif
|
||||
}
|
||||
|
||||
int putpwent_sane(const struct passwd *pw, FILE *stream) {
|
||||
|
|
Loading…
Reference in a new issue