Source: network-manager Severity: normal Tags: patch Please apply the patch attached.
-- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 3.6-trunk-686-pae (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8) Shell: /bin/sh linked to /bin/dash
--- a/src/settings/plugins/ifupdown/interface_parser.c +++ b/src/settings/plugins/ifupdown/interface_parser.c @@ -25,6 +25,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <wordexp.h> #include "nm-utils.h" if_block* first; @@ -211,6 +212,25 @@ add_block(token[0], token[i]); skip_to_block = 0; } + else if (strcmp(token[0], "source") == 0) { + wordexp_t p; + char ** w; + size_t i; + const char * rest = join_values_with_spaces(value, token + 1); + int fail = wordexp(rest, &p, WRDE_NOCMD); + if (!fail) + { + w = p.we_wordv; + for (i = 0; i < p.we_wordc; i++) + { + ifparser_init(w[i], quiet); + } + wordfree(&p); + } else { + g_message ("Error: failed to match files using %s\n", + rest); + } + } else { if (skip_to_block) { if (!quiet) {