← Commit list

5c942713b

Denys Vlasenko
Denys Vlasenko
2011-03-12
FAILED Duration: 226s

Subject

busybox: fail if --install is not given an absolute 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/appletlib.c+3 -4
@@ -721,10 +721,9 @@ static int busybox_main(char **argv)
* In such case, better use argv[0] as symlink target
* if it is a full path name.
*/
- if (argv[0][0] == '/')
- busybox = argv[0];
- else
- busybox = bb_busybox_exec_path;
+ if (argv[0][0] != '/')
+ bb_error_msg_and_die("'%s' is not an absolute path", argv[0]);
+ busybox = argv[0];
}
/* busybox --install [-s] [DIR]:
* -s: make symlinks