chpst: fix "env directory" parsing to not strip everything
[oweals/busybox.git] / scripts / basic / fixdep.c
index 65bae4dac46bf7f5448240e01df2f7c889175c45..811d48b784ca08703e01c6560fc1874a89438d7c 100644 (file)
@@ -239,11 +239,11 @@ void parse_config_file(char *map, size_t len)
                /* We have at least 5 chars: for() has
                 * "p < end-4", not "p <= end-4"
                 * therefore we don't need to check p <= end-5 here */
-               if (p[4] == '_') {
+               if (p[4] == '_')
                        if (!memcmp(p, "SKIP", 4)) goto conf5;
-               }
                /* Ehhh, gcc is too stupid to just compare it as 32bit int */
-               if (!memcmp(p, "USE_", 4)) goto conf4;
+               if (p[0] == 'U')
+                       if (!memcmp(p, "USE_", 4)) goto conf4;
                continue;
 
        conf4:  off = 4;
@@ -386,7 +386,7 @@ void traps(void)
 */
 }
 
-int main(int argc, char *argv[])
+int main(int argc, char **argv)
 {
        traps();