Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146148324
D19271.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
748 B
Referenced Files
None
Subscribers
None
D19271.diff
View Options
Index: head/sys/geom/geom_ctl.h
===================================================================
--- head/sys/geom/geom_ctl.h
+++ head/sys/geom/geom_ctl.h
@@ -78,7 +78,8 @@
#define GEOM_CTL _IOW('G', GCTL_VERSION, struct gctl_req)
-#define PATH_GEOM_CTL "geom.ctl"
+#define GEOM_CTL_ARG_MAX 2048 /* maximum number of parameters */
+#define PATH_GEOM_CTL "geom.ctl"
#endif /* _GEOM_GEOM_CTL_H_ */
Index: head/sys/geom/geom_ctl.c
===================================================================
--- head/sys/geom/geom_ctl.c
+++ head/sys/geom/geom_ctl.c
@@ -139,7 +139,7 @@
char *p;
u_int i;
- if (req->narg > 2048) {
+ if (req->narg > GEOM_CTL_ARG_MAX) {
gctl_error(req, "too many arguments");
req->arg = NULL;
return;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 1, 5:50 AM (8 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29100093
Default Alt Text
D19271.diff (748 B)
Attached To
Mode
D19271: Define a constant for the maximum number of GEOM_CTL arguments.
Attached
Detach File
Event Timeline
Log In to Comment