From 16d291e2c9ef687bd1d2f58d347d3ee0dc7fcbe1 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 3 Apr 2015 19:06:56 +0000 Subject: [PATCH] ppp: Fix missing arg argument when using option flag OPT_A2STRVAL The arg argument is missing to the printer call in the print_option utility when the option flag OPT_A2STRVAL is set. Signed-off-by: Hans Dedecker SVN-Revision: 45264 --- .../services/ppp/patches/550-fix-printer-args.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/network/services/ppp/patches/550-fix-printer-args.patch diff --git a/package/network/services/ppp/patches/550-fix-printer-args.patch b/package/network/services/ppp/patches/550-fix-printer-args.patch new file mode 100644 index 000000000000..0eed9428a614 --- /dev/null +++ b/package/network/services/ppp/patches/550-fix-printer-args.patch @@ -0,0 +1,11 @@ +--- a/pppd/options.c ++++ b/pppd/options.c +@@ -1013,7 +1013,7 @@ print_option(opt, mainopt, printer, arg) + p = (char *) opt->addr2; + if ((opt->flags & OPT_STATIC) == 0) + p = *(char **)p; +- printer("%q", p); ++ printer(arg, "%q", p); + } else if (opt->flags & OPT_A2LIST) { + struct option_value *ovp; + -- 2.30.2