[PATCH] Fix Netplex "group" parameter
Thomas Calderon <[email protected]> Wed, 19 Nov 2014 18:24:59 +0100
| Newsgroups | gmane.comp.lang.ocaml.lib.net.devel |
|---|---|
| Message-ID | <CA+1ewKab2x9sJH9H2RsDDb6EcggfseG1AjpQ4E1CkXTcZ47_Yg@mail.gmail.com> |
--047d7bd75cb0f73dee0508397e59 Content-Type: multipart/alternative; boundary=047d7bd75cb0f73dea0508397e57 --047d7bd75cb0f73dea0508397e57 Content-Type: text/plain; charset=UTF-8 Hi, I would like to report an issue regarding the group parameter in a netplex process. It can be used to set a group for the worker processes. It seems the code wrongly re-use the "user" variable instead of using the "group" variable to fetch the corresponding group with Unix.getgrnam. This issue is hidden if you have matching user/group (user1/user1), but if you start using a different user/group pair (user1/nogroup) then netplex_config fails. I have attached a patch (applied to 3.7.3) to correct this behavior. It should be easily adapted to other versions. Regards, Thomas C. --047d7bd75cb0f73dea0508397e57 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi,<div><br></div><div>I would like to report an issue reg= arding the group parameter in a netplex process.</div><div>It can be used t= o set a group for the worker processes.</div><div><br></div><div>It seems t= he code wrongly re-use the "user" variable instead of using the &= quot;group" variable to fetch the corresponding group with Unix.getgrn= am.</div><div><br></div><div>This issue is hidden if you have matching user= /group (user1/user1), but if you start using a different user/group pair (u= ser1/nogroup) then netplex_config fails.</div><div><br></div><div>I have at= tached a patch (applied to 3.7.3) to correct this behavior. It should be ea= sily adapted to other versions.</div><div><br></div><div>Regards,</div><div= ><br></div><div>Thomas C.</div></div> --047d7bd75cb0f73dea0508397e57-- --047d7bd75cb0f73dee0508397e59 Content-Type: text/x-patch; charset=US-ASCII; name="ocamlnet-netplex-group-cfg.patch" Content-Disposition: attachment; filename="ocamlnet-netplex-group-cfg.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_i2oyjcp90 ZGlmZiAtdXJwTiBvY2FtbG5ldC0zLjcuMy9zcmMvbmV0cGxleC9uZXRwbGV4X2NvbmZpZy5tbCBv Y2FtbG5ldC0zLjcuMy5uZXcvc3JjL25ldHBsZXgvbmV0cGxleF9jb25maWcubWwKLS0tIG9jYW1s bmV0LTMuNy4zL3NyYy9uZXRwbGV4L25ldHBsZXhfY29uZmlnLm1sCTIwMTMtMDgtMzAgMjA6Mzg6 MjcuMDAwMDAwMDAwICswMjAwCisrKyBvY2FtbG5ldC0zLjcuMy5uZXcvc3JjL25ldHBsZXgvbmV0 cGxleF9jb25maWcubWwJMjAxNC0xMS0xOSAxODoxMTo0Ni42NTY3MDU3MzQgKzAxMDAKQEAgLTU0 OSw3ICs1NDksNyBAQCBsZXQgcmVhZF9uZXRwbGV4X2NvbmZpZ18gcHR5cGUgY19sb2dnZXJfCiAJ CSAgIHdpdGggTm90X2ZvdW5kIC0+CiAJCSAgICAgZmFpbHdpdGggKCJVbmtub3duIHVzZXI6ICIg XiBjZiNwcmludCBhZGRyIF4gIi51c2VyIikgaW4KIAkJIGxldCBncm91cF9lbnQgPQotCQkgICB0 cnkgVW5peC5nZXRncm5hbSB1c2VyCisJCSAgIHRyeSBVbml4LmdldGdybmFtIGdyb3VwCiAJCSAg IHdpdGggTm90X2ZvdW5kIC0+CiAJCSAgICAgZmFpbHdpdGggKCJVbmtub3duIGdyb3VwOiAiIF4g Y2YjcHJpbnQgYWRkciBeICIuZ3JvdXAiKSBpbgogCQkgU29tZSh1c2VyX2VudC5Vbml4LnB3X3Vp ZCwgZ3JvdXBfZW50LlVuaXguZ3JfZ2lkKQo= --047d7bd75cb0f73dee0508397e59 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk --047d7bd75cb0f73dee0508397e59 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Ocamlnet-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ocamlnet-devel --047d7bd75cb0f73dee0508397e59--