← Commit list

f7e0feaf9

Denys Vlasenko
Denys Vlasenko
2018-01-27
SUCCESS Duration: 142s

Subject

hush: fix dot builtin to not search current directory

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 →

shell/hush.c+5 -0
@@ -10211,6 +10211,11 @@ static int FAST_FUNC builtin_source(char **argv)
arg_path = find_in_path(filename);
if (arg_path)
filename = arg_path;
+ else /* add "if (!HUSH_BASH_SOURCE_CURDIR)" if users want bash-compat */ {
+ errno = ENOENT;
+ bb_simple_perror_msg(filename);
+ return EXIT_FAILURE;
+ }
}
input = remember_FILE(fopen_or_warn(filename, "r"));
free(arg_path);