[Mono-dev] [PATCH] Make sure mkbundle executables work if they are run from a path on the PATH environment variable.
Miguel de Icaza
miguel at microsoft.com
Fri Dec 1 19:20:37 UTC 2017
The patch looks great, as you work to submitting it via GitHub, can you make sure that you keep the exitsing code style for braces as well?
From: R Zaghi <rzaghi at mosaic3dx.com>
Reply-To: "rzaghi at mosaic3dx.com" <rzaghi at mosaic3dx.com>
Date: Friday, December 1, 2017 at 2:12 PM
To: Mono Devel Mailing List <mono-devel-list at lists.dot.net>
Cc: Miguel de Icaza <miguel at microsoft.com>, Zoltan Varga <vargaz at gmail.com>
Subject: [PATCH] Make sure mkbundle executables work if they are run from a path on the PATH environment variable.
This is a patch to enable mkbundle executable files to work when they are run from a path that is on the PATH environment variable.
Mono mini has a function probe_embedded() which looks for the program's file (using argv). If the program is run from a path on the PATH environment variable then the open() fails and only a single parameter is sent to the mono_main() which in turn causes an if condition to print the help and exit.
This patch searches through the directories specified in the current environment's PATH variable and tries to open() then first file found.
Apologies if this is not the right way to submit patches but I had a quick look at the contribution page online and my understanding is that I must send a patch this to the community with the most likely or relevant owner(s) on the CC.
Please let me know if I need to do anything else to push this (change log!?).
[https://drive.google.com/uc?id=0B3xiwa7kf1uwRlYxenBFM1o2NEk&export=download]Mosaic3DX™ | User Interface Technology
St John's Innovation Centre,
CB4 0WS, UK
E: rzaghi at mosaic3dx.com<mailto:rzaghi at mosaic3dx.com>
T: +44 1223 421 311
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list