Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105802379
D24750.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
705 B
Referenced Files
None
Subscribers
None
D24750.diff
View Options
Index: head/usr.sbin/pkg/pkg.c
===================================================================
--- head/usr.sbin/pkg/pkg.c
+++ head/usr.sbin/pkg/pkg.c
@@ -1050,8 +1050,16 @@
if (argc > 1 && strcmp(argv[1], "bootstrap") == 0) {
bootstrap_only = true;
- if (argc == 3 && strcmp(argv[2], "-f") == 0)
+ if (argc > 3) {
+ fprintf(stderr, "Too many arguments\nUsage: pkg bootstrap [-f]\n");
+ exit(EXIT_FAILURE);
+ }
+ if (argc == 3 && strcmp(argv[2], "-f") == 0) {
force = true;
+ } else if (argc == 3) {
+ fprintf(stderr, "Invalid argument specified\nUsage: pkg bootstrap [-f]\n");
+ exit(EXIT_FAILURE);
+ }
}
if ((bootstrap_only && force) || access(pkgpath, X_OK) == -1) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 10:00 PM (19 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15547527
Default Alt Text
D24750.diff (705 B)
Attached To
Mode
D24750: pkg-bootstrap: complain on improper `pkg bootstrap` usage
Attached
Detach File
Event Timeline
Log In to Comment