Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rc: fix automatic restart with runlevel-specific conf.d files
Commit fc4f15d broke the automatic restart of services having runlevel-specific conf.d files. The double dirname() was not a mistake, but the way of getting from the service script in init.d to the upper directory containing the conf.d directory. dirname() modifies the argument in-place, so the second call operated on a modified value. To make it more obvious what is going on, have the second call operate on the returned value from the first call. Fixes: fc4f15d ("openrc: fix double-assignment to dir") Signed-off-by: Sven Wegener <[email protected]>
- Loading branch information