Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115415921
D28140.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
637 B
Referenced Files
None
Subscribers
None
D28140.diff
View Options
diff --git a/usr.bin/elfctl/elfctl.c b/usr.bin/elfctl/elfctl.c
--- a/usr.bin/elfctl/elfctl.c
+++ b/usr.bin/elfctl/elfctl.c
@@ -232,6 +232,16 @@
input |= featurelist[i].value;
break;
}
+ /* XXX Backwards compatibility for "no"-prefix flags. */
+ if (strncmp(featurelist[i].alias, "no", 2) == 0 &&
+ strcmp(featurelist[i].alias + 2, feature) == 0) {
+ input |= featurelist[i].value;
+ warnx(
+ "interpreting %s as %s; please specify %s",
+ feature, featurelist[i].alias,
+ featurelist[i].alias);
+ break;
+ }
}
if (i == len) {
warnx("%s is not a valid feature", feature);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 24, 2:10 PM (16 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17760297
Default Alt Text
D28140.diff (637 B)
Attached To
Mode
D28140: elfctl: add backwards compatibility for "no" prefixes
Attached
Detach File
Event Timeline
Log In to Comment