← Commit list

7b565a0c8

Manuel Novoa III
Manuel Novoa III
2004-02-17
FAILED Duration: 109s

Subject

Patch from Florian Schirmer . When I rewrote the parser, I overlooked the case of someone wanting to use a valid but empty suid config file.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

applets/applets.c+3 -1
@@ -71,6 +71,7 @@ struct BB_suid_config
};
static struct BB_suid_config *suid_config;
+static int suid_cfg_readable;
#endif /* CONFIG_FEATURE_SUID_CONFIG */
@@ -192,7 +193,7 @@ check_suid (struct BB_applet *applet)
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) {
@@ -315,6 +316,7 @@ static void parse_config_file(void)
return;
}
+ suid_cfg_readable = 1;
sct_head = NULL;
section = lc = 0;