diff options
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0001-Handle-missing-gshadow.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0001-Handle-missing-gshadow.patch | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/meta/recipes-core/systemd/systemd/0001-Handle-missing-gshadow.patch b/meta/recipes-core/systemd/systemd/0001-Handle-missing-gshadow.patch index 723cd2e52e..c5960a0d60 100644 --- a/meta/recipes-core/systemd/systemd/0001-Handle-missing-gshadow.patch +++ b/meta/recipes-core/systemd/systemd/0001-Handle-missing-gshadow.patch | |||
@@ -14,10 +14,8 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | |||
14 | src/shared/userdb.c | 6 ++++++ | 14 | src/shared/userdb.c | 6 ++++++ |
15 | 3 files changed, 30 insertions(+) | 15 | 3 files changed, 30 insertions(+) |
16 | 16 | ||
17 | Index: systemd-stable/src/shared/group-record-nss.c | 17 | --- a/src/shared/group-record-nss.c |
18 | =================================================================== | 18 | +++ b/src/shared/group-record-nss.c |
19 | --- systemd-stable.orig/src/shared/group-record-nss.c | ||
20 | +++ systemd-stable/src/shared/group-record-nss.c | ||
21 | @@ -19,8 +19,10 @@ int nss_group_to_group_record( | 19 | @@ -19,8 +19,10 @@ int nss_group_to_group_record( |
22 | if (isempty(grp->gr_name)) | 20 | if (isempty(grp->gr_name)) |
23 | return -EINVAL; | 21 | return -EINVAL; |
@@ -35,7 +33,7 @@ Index: systemd-stable/src/shared/group-record-nss.c | |||
35 | 33 | ||
36 | +#if ENABLE_GSHADOW | 34 | +#if ENABLE_GSHADOW |
37 | if (sgrp) { | 35 | if (sgrp) { |
38 | if (hashed_password_valid(sgrp->sg_passwd)) { | 36 | if (looks_like_hashed_password(sgrp->sg_passwd)) { |
39 | g->hashed_password = strv_new(sgrp->sg_passwd); | 37 | g->hashed_password = strv_new(sgrp->sg_passwd); |
40 | @@ -51,6 +54,7 @@ int nss_group_to_group_record( | 38 | @@ -51,6 +54,7 @@ int nss_group_to_group_record( |
41 | if (!g->administrators) | 39 | if (!g->administrators) |
@@ -119,10 +117,8 @@ Index: systemd-stable/src/shared/group-record-nss.c | |||
119 | if (r < 0) | 117 | if (r < 0) |
120 | return r; | 118 | return r; |
121 | 119 | ||
122 | Index: systemd-stable/src/shared/group-record-nss.h | 120 | --- a/src/shared/group-record-nss.h |
123 | =================================================================== | 121 | +++ b/src/shared/group-record-nss.h |
124 | --- systemd-stable.orig/src/shared/group-record-nss.h | ||
125 | +++ systemd-stable/src/shared/group-record-nss.h | ||
126 | @@ -2,7 +2,11 @@ | 122 | @@ -2,7 +2,11 @@ |
127 | #pragma once | 123 | #pragma once |
128 | 124 | ||
@@ -135,10 +131,8 @@ Index: systemd-stable/src/shared/group-record-nss.h | |||
135 | 131 | ||
136 | #include "group-record.h" | 132 | #include "group-record.h" |
137 | 133 | ||
138 | Index: systemd-stable/src/shared/userdb.c | 134 | --- a/src/shared/userdb.c |
139 | =================================================================== | 135 | +++ b/src/shared/userdb.c |
140 | --- systemd-stable.orig/src/shared/userdb.c | ||
141 | +++ systemd-stable/src/shared/userdb.c | ||
142 | @@ -930,13 +930,16 @@ int groupdb_iterator_get(UserDBIterator | 136 | @@ -930,13 +930,16 @@ int groupdb_iterator_get(UserDBIterator |
143 | if (gr) { | 137 | if (gr) { |
144 | _cleanup_free_ char *buffer = NULL; | 138 | _cleanup_free_ char *buffer = NULL; |