diff options
author | John Crispin <blogic@openwrt.org> | 2015-04-03 19:06:56 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-04-03 19:06:56 +0000 |
commit | bc72ca84d17509e0b210968f704503945de4b226 (patch) | |
tree | 744c4935442b61e3b27f2a8e5e82c2aa4fe2cf1f /package/network/services/ppp/patches | |
parent | 6f9c3de55e3656946a7d4bdda896f97a034e4c8d (diff) | |
download | master-187ad058-bc72ca84d17509e0b210968f704503945de4b226.tar.gz master-187ad058-bc72ca84d17509e0b210968f704503945de4b226.tar.bz2 master-187ad058-bc72ca84d17509e0b210968f704503945de4b226.zip |
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 <dedeckeh@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45264 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/services/ppp/patches')
-rw-r--r-- | package/network/services/ppp/patches/550-fix-printer-args.patch | 11 |
1 files changed, 11 insertions, 0 deletions
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 0000000000..0eed9428a6 --- /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; + |