]> git.ozlabs.org Git - ppp.git/commit
pppd: Make pid directory before creating the pid file (#536)
authorDragonBluep <70847398+DragonBluep@users.noreply.github.com>
Tue, 26 Nov 2024 09:14:42 +0000 (17:14 +0800)
committerGitHub <noreply@github.com>
Tue, 26 Nov 2024 09:14:42 +0000 (20:14 +1100)
commit734bc0438e78b7c7cd34acfce3a4ec119d9a50b6
treee1dde1c14bf442a1db8c5c091b099d1658113cb6
parent3102b0b61816daad8b0c5b4212db1bf6828cb334
pppd: Make pid directory before creating the pid file (#536)

If multilink feature is not enabled, the '/var/run/pppd' directory
won't be created before adding pid file.

Fixes error message:
'Failed to create pid file /var/run/pppd/pppoe-wan.pid: No such file or directory'

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
pppd/main.c