Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102878506
D39544.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
863 B
Referenced Files
None
Subscribers
None
D39544.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D39544: rtld: fixes for handling of the grouped options
Attached
Detach File
Event Timeline
Log In to Comment