I overlooked the case of someone wanting to use a valid but empty suid
config file.
};
static struct BB_suid_config *suid_config;
+static int suid_cfg_readable;
#endif /* CONFIG_FEATURE_SUID_CONFIG */
uid_t rgid = getgid ();
#ifdef CONFIG_FEATURE_SUID_CONFIG
- if (suid_config) {
+ if (suid_cfg_readable) {
struct BB_suid_config *sct;
for (sct = suid_config; sct; sct = sct->m_next) {
return;
}
+ suid_cfg_readable = 1;
sct_head = NULL;
section = lc = 0;