From 6064f9672cbd805a9c51b60414f3711a499c45aa Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Wed, 5 Dec 2012 15:35:12 -0500 Subject: [PATCH] libsemange: redo genhomedircon minuid Just a little less code. No real change. Signed-off-by: Eric Paris Acked-by: Dan Walsh --- libsemanage/src/genhomedircon.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libsemanage/src/genhomedircon.c b/libsemanage/src/genhomedircon.c index 15bca6cd..26f6dd83 100644 --- a/libsemanage/src/genhomedircon.c +++ b/libsemanage/src/genhomedircon.c @@ -283,7 +283,7 @@ static semanage_list_t *get_home_dirs(genhomedircon_settings_t * s) char *rbuf = NULL; char *path = NULL; long rbuflen; - uid_t temp, minuid = 0; + uid_t temp, minuid = 500; int minuid_set = 0; struct passwd pwstorage, *pwbuf; struct stat buf; @@ -346,11 +346,6 @@ static semanage_list_t *get_home_dirs(genhomedircon_settings_t * s) free(path); path = NULL; - if (!minuid_set) { - minuid = 500; - minuid_set = 1; - } - rbuflen = sysconf(_SC_GETPW_R_SIZE_MAX); if (rbuflen <= 0) goto fail;