Red Hat Bugzilla – Bug 298451
jsvc should warn about exec with absolute/relative path requirement
Last modified: 2007-11-30 17:12:16 EST
Because jsvc calls execve() on Linux platforms, if jsvc is invoked by allowing
it to be found in the PATH, the execve() call will fail unless the CWD just so
happens to be where the jsvc binary is located.
Thus, jsvc needs to be invoked with an absolute or relative path. However, jsvc
makes no attempt whatsoever to detect if it was invoked via an absolute/relative
path and return an appropriate error. Catching this error isn't difficult; jsvc
simply needs to check for the absence of a '/' character in argv.
Created attachment 200851 [details]
patch to return a userful error message if absolute/relative path not used
With this patch, jsvc will detect if it wasn't invoked with an absolute or
relative path, and return a useful error message.
Built in rawhide.