1
0

debian-610375_remote-number-support.patch 942 B

1234567891011121314151617181920212223242526272829
  1. Description: "remotenumber" support
  2. Author: Igor A Tarasov <develop@dicr.org>
  3. Author: Michael Poetters <michael@poetters.net>
  4. Forwarded: http://sourceforge.net/mailarchive/forum.php?thread_name=1360193861%40msgid.manchmal.in-ulm.de&forum_name=poptop-server
  5. Bug-Debian: http://bugs.debian.org/610375
  6. Bug-Debian: http://bugs.debian.org/625459
  7. Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/pptpd/+bug/704245
  8. --- a/pptpctrl.c
  9. +++ b/pptpctrl.c
  10. @@ -657,7 +657,7 @@
  11. */
  12. static void launch_pppd(char **pppaddrs, struct in_addr *inetaddrs)
  13. {
  14. - char *pppd_argv[14];
  15. + char *pppd_argv[16];
  16. int an = 0;
  17. sigset_t sigs;
  18. @@ -778,6 +778,9 @@
  19. pppd_argv[an++] = inet_ntoa(inetaddrs[1]);
  20. }
  21. + pppd_argv[an++] = "remotenumber";
  22. + pppd_argv[an++] = inet_ntoa(inetaddrs[1]);
  23. +
  24. /* argv arrays must always be NULL terminated */
  25. pppd_argv[an++] = NULL;
  26. /* make sure SIGCHLD is unblocked, pppd does not expect it */