Page MenuHomeFreeBSD

D39544.diff
No OneTemporary

D39544.diff

diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c
--- a/libexec/rtld-elf/rtld.c
+++ b/libexec/rtld-elf/rtld.c
@@ -6029,13 +6029,16 @@
_rtld_error("Both -b and -f specified");
rtld_die();
}
+ if (j != arglen - 1) {
+ _rtld_error("Invalid options: %s", arg);
+ rtld_die();
+ }
i++;
*argv0 = argv[i];
seen_b = true;
break;
} else if (opt == 'd') {
*dir_ignore = true;
- break;
} else if (opt == 'f') {
if (seen_b) {
_rtld_error("Both -b and -f specified");
@@ -6050,7 +6053,8 @@
* name but the descriptor is what
* will actually be executed).
*
- * -f must be the last option in, e.g., -abcf.
+ * -f must be the last option in the
+ * group, e.g., -abcf <fd>.
*/
if (j != arglen - 1) {
_rtld_error("Invalid options: %s", arg);

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 8:40 AM (22 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14713469
Default Alt Text
D39544.diff (863 B)

Event Timeline