From: Marco d'Itri Date: Fri, 2 Jun 2017 11:23:29 +0200 Subject: [PATCH] export $CALL_FILE to the link scripts --- pppd/options.c | 1 + pppd/pppd.8 | 3 +++ 2 files changed, 4 insertions(+) diff --git a/pppd/options.c b/pppd/options.c index dc2d7329a93d..2de65f9aa8d5 100644 --- a/pppd/options.c +++ b/pppd/options.c @@ -1477,6 +1477,7 @@ callfile(argv) if ((fname = (char *) malloc(l)) == NULL) novm("call file name"); slprintf(fname, l, "%s%s", _PATH_PEERFILES, arg); + script_setenv("CALL_FILE", arg, 0); ok = options_from_file(fname, 1, 1, 1); diff --git a/pppd/pppd.8 b/pppd/pppd.8 index 67181083808b..f6c9e909254c 100644 --- a/pppd/pppd.8 +++ b/pppd/pppd.8 @@ -1656,6 +1656,9 @@ the connection. .B LINKNAME The logical name of the link, set with the \fIlinkname\fR option. .TP +.B CALL_FILE +The value of the \fIcall\fR option. +.TP .B DNS1 If the peer supplies DNS server addresses, this variable is set to the first DNS server address supplied (whether or not the usepeerdns