← Commit list

f2e659415

Ron Yorston
Ron Yorston
2023-03-29
SUCCESS Duration: 162s

Subject

lineedit: fix matching of directories when searching PATH

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 →

libbb/lineedit.c+2 -2
@@ -825,8 +825,8 @@ static unsigned path_parse(char ***p)
res[npth++] = tmp;
}
/* special case: "match subdirectories of the current directory" */
- /*res[npth++] = NULL; - filled by xzalloc() */
- return npth;
+ /*res[npth] = NULL; - filled by xzalloc() */
+ return npth + 1;
}
/* Complete command, directory or file name.