diff options
Diffstat (limited to 'meta/recipes-extended/shadow/files/0001-useradd-copy-extended-attributes-of-home.patch')
-rw-r--r-- | meta/recipes-extended/shadow/files/0001-useradd-copy-extended-attributes-of-home.patch | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/meta/recipes-extended/shadow/files/0001-useradd-copy-extended-attributes-of-home.patch b/meta/recipes-extended/shadow/files/0001-useradd-copy-extended-attributes-of-home.patch deleted file mode 100644 index 474b3a257e..0000000000 --- a/meta/recipes-extended/shadow/files/0001-useradd-copy-extended-attributes-of-home.patch +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | Subject: [PATCH] useradd: copy extended attributes of home | ||
2 | |||
3 | The Home directory wasn't getting the extended attributes | ||
4 | of /etc/skel. This patch fixes that issue and adds the copy | ||
5 | of the extended attributes of the root of the home directory. | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | |||
9 | Signed-off-by: José Bollo <jose.bollo@iot.bzh> | ||
10 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
11 | --- | ||
12 | src/useradd.c | 6 ++++++ | ||
13 | 1 file changed, 6 insertions(+) | ||
14 | |||
15 | diff --git a/src/useradd.c b/src/useradd.c | ||
16 | index e721e52..c74e491 100644 | ||
17 | --- a/src/useradd.c | ||
18 | +++ b/src/useradd.c | ||
19 | @@ -54,6 +54,9 @@ | ||
20 | #include <sys/wait.h> | ||
21 | #include <time.h> | ||
22 | #include <unistd.h> | ||
23 | +#ifdef WITH_ATTR | ||
24 | +#include <attr/libattr.h> | ||
25 | +#endif | ||
26 | #include "chkname.h" | ||
27 | #include "defines.h" | ||
28 | #include "faillog.h" | ||
29 | @@ -2042,6 +2045,9 @@ static void create_home (void) | ||
30 | (void) chown (prefix_user_home, user_id, user_gid); | ||
31 | chmod (prefix_user_home, | ||
32 | 0777 & ~getdef_num ("UMASK", GETDEF_DEFAULT_UMASK)); | ||
33 | +#ifdef WITH_ATTR | ||
34 | + attr_copy_file (def_template, user_home, NULL, NULL); | ||
35 | +#endif | ||
36 | home_added = true; | ||
37 | #ifdef WITH_AUDIT | ||
38 | audit_logger (AUDIT_ADD_USER, Prog, | ||
39 | -- | ||
40 | 2.11.0 | ||
41 | |||