Bug 231381 - /usr/sbin/ppp: INTERFACE variable not expanded when used in !bg statement
Summary: /usr/sbin/ppp: INTERFACE variable not expanded when used in !bg statement
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-15 12:13 UTC by O. Hartmann
Modified: 2018-09-15 12:13 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2018-09-15 12:13:05 UTC
Utiliszing a simple logging of IP addresses and interface used via /etc/ppp/ppp.linkup, it has been revealed that in contrary to the manpage ppp(8), the variable INTERFACE is not substituted as MYADDR, MYADDR6, HISADDR, HISADDR6 is.

This following simple background statement shows the problem:

!bg     /usr/bin/logger -s -t ppp -p user.warning "Link up (INTERFACE): my-isp-name inet: MYADDR  inet6: MYADDR6"

While MYADDR and MYADDR6 are substituted by the appropriate IPv4/IPv6 addresses, INTERFACE stays as it is but I would expect /dev/tun0 or tun0.