Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pidfile(): ensure prefix path ends with slash
For some builds using Buildroot, the system default _PATH_VARRUN did not include a trailing slas '/', which cause the pidfile() function to fail. Example: pidfile("arg") => "/var/runarg.pid" Since the __pidfile_path can be overridden we add a check if that prefix path ends with '/', if not we add one in the path composition. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
- Loading branch information