Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try to create rundir and lockdir before using them
PR #435 makes lockdir default go back to /var/lock, but runtime dir still changed from /run to /run/pppd in commit 66a8c74 ("Let ./configure control the paths for pppd") and is likely to not exist on some distros, in which case the pppdb will not be created. This is not a big problem but might as well just try to create the directory if it is missing. Return code of mkdir does not need to be checked as the following open will fail anyway if mkdir failed. See: #419 Signed-off-by: Dominique Martinet <[email protected]>
- Loading branch information