~ubuntu-branches/ubuntu/oneiric/openvpn/oneiric

« back to all changes in this revision

Viewing changes to multi.c

  • Committer: Bazaar Package Importer
  • Author(s): Thierry Carrez
  • Date: 2008-10-07 16:30:44 UTC
  • mfrom: (1.1.11 upstream) (10.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20081007163044-ixx04wg588z1972e
Tags: 2.1~rc11-1ubuntu1
* Merge with Debian (LP: #279655), remaining diffs:
  - debian/openvpn.init.d: Added 'status' action to init script, show
    per-VPN result messages and add "--script-security 2" by default for
    backwards compatibility
  - debian/control: Added lsb-base>=3.2-14 depend to allow status_of_proc()
* Fixes regression when calling commands with arguments (LP: #277447)

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
    {
104
104
      struct argv argv = argv_new ();
105
105
      setenv_str (es, "script_type", "learn-address");
106
 
      argv_printf (&argv, "%s %s %s",
 
106
      argv_printf (&argv, "%sc %s %s",
107
107
                   m->top.options.learn_address_script,
108
108
                   op,
109
109
                   mroute_addr_print (addr, &gc));
473
473
        {
474
474
          struct argv argv = argv_new ();
475
475
          setenv_str (mi->context.c2.es, "script_type", "client-disconnect");
476
 
          argv_printf (&argv, "%s", mi->context.options.client_disconnect_script);
 
476
          argv_printf (&argv, "%sc", mi->context.options.client_disconnect_script);
477
477
          openvpn_execve_check (&argv, mi->context.c2.es, S_SCRIPT, "client-disconnect command failed");
478
478
          argv_reset (&argv);
479
479
        }
1568
1568
 
1569
1569
          delete_file (dc_file);
1570
1570
 
1571
 
          argv_printf (&argv, "%s %s",
 
1571
          argv_printf (&argv, "%sc %s",
1572
1572
                       mi->context.options.client_connect_script,
1573
1573
                       dc_file);
1574
1574