On 10/02/2010 04:14 PM, sebb wrote:
All correct, but this is according to the MSDN:
256 chars except '/' and '\\' (path separators)
We add space cause we need that in service name from the process name
guessing. If anything is about to fail, then the Win API call will fail
and we'll log the reason.
Yes, but AFAIK we don't just use the value as the service name.
I think we need to be sure that the value cannot 'escape' into other
uses which might cause problems, e.g. interpretation of shell
meta-characters.
Yep, you are right. Modified to check for invalid path name chars + space
Regards
--
^TM
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org