From: Jan Chren (rindeal) Date: Mon, 18 Jun 2018 13:51:27 +0000 (+0200) Subject: fix unguarded ENABLE_SUBIDS code X-Git-Tag: 4.7~34^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F117%2Fhead;p=thirdparty%2Fshadow.git fix unguarded ENABLE_SUBIDS code --- diff --git a/libmisc/prefix_flag.c b/libmisc/prefix_flag.c index 96b11faa0..cd1eec478 100644 --- a/libmisc/prefix_flag.c +++ b/libmisc/prefix_flag.c @@ -129,7 +129,7 @@ extern const char* process_prefix_flag (const char* short_opt, int argc, char ** snprintf(spw_db_file, len, "%s/%s", prefix, SHADOW_FILE); spw_setdbname(spw_db_file); - +#ifdef ENABLE_SUBIDS len = strlen(prefix) + strlen("/etc/subuid") + 2; suid_db_file = xmalloc(len); snprintf(suid_db_file, len, "%s/%s", prefix, "/etc/subuid"); @@ -139,6 +139,7 @@ extern const char* process_prefix_flag (const char* short_opt, int argc, char ** sgid_db_file = xmalloc(len); snprintf(sgid_db_file, len, "%s/%s", prefix, "/etc/subgid"); sub_gid_setdbname(sgid_db_file); +#endif len = strlen(prefix) + strlen("/etc/login.defs") + 2; def_conf_file = xmalloc(len);