]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - libsemanage/patches/libsemanage-rhat.patch
Move all packages to root.
[people/arne_f/ipfire-3.x.git] / libsemanage / patches / libsemanage-rhat.patch
CommitLineData
3002f9ae
SS
1diff --exclude-from=exclude -N -u -r nsalibsemanage/src/genhomedircon.c libsemanage-2.0.44/src/genhomedircon.c
2--- nsalibsemanage/src/genhomedircon.c 2009-09-17 08:59:43.000000000 -0400
3+++ libsemanage-2.0.44/src/genhomedircon.c 2010-02-24 14:57:23.000000000 -0500
4@@ -310,6 +310,10 @@
5 }
6 if (strcmp(pwbuf->pw_dir, "/") == 0)
7 continue;
8+ if (strcmp(pwbuf->pw_dir, "/root") == 0) {
9+ continue;
10+ }
11+
12 if (semanage_str_count(pwbuf->pw_dir, '/') <= 1)
13 continue;
14 if (!(path = strdup(pwbuf->pw_dir))) {
15@@ -803,6 +807,9 @@
16 * /root */
17 continue;
18 }
19+ if (strcmp(pwent->pw_dir, "/root") == 0) {
20+ continue;
21+ }
22 if (push_user_entry(&head, name, seuname,
23 prefix, pwent->pw_dir) != STATUS_SUCCESS) {
24 *errors = STATUS_ERR;