Page MenuHomeFreeBSD

D19271.1794328926.diff
No OneTemporary

Authored By
Unknown
Size
718 B
Referenced Files
None
Subscribers
None

D19271.1794328926.diff

Index: sys/geom/geom_ctl.h
===================================================================
--- sys/geom/geom_ctl.h
+++ 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: sys/geom/geom_ctl.c
===================================================================
--- sys/geom/geom_ctl.c
+++ 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

Mime Type
text/plain
Expires
Tue, Nov 10, 4:42 PM (2 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41634427
Default Alt Text
D19271.1794328926.diff (718 B)

Event Timeline