1 |
mrness 09/06/20 09:00:50 |
2 |
|
3 |
Added: pptpclient-1.7.2-process-name.patch |
4 |
Log: |
5 |
Version bump (#270657). |
6 |
(Portage version: 2.1.6.13/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 net-dialup/pptpclient/files/pptpclient-1.7.2-process-name.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/pptpclient/files/pptpclient-1.7.2-process-name.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/pptpclient/files/pptpclient-1.7.2-process-name.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: pptpclient-1.7.2-process-name.patch |
15 |
=================================================================== |
16 |
diff -Nru pptp-1.7.2.orig/pptp.c pptp-1.7.2/pptp.c |
17 |
--- pptp-1.7.2.orig/pptp.c 2008-05-14 08:33:55.000000000 +0200 |
18 |
+++ pptp-1.7.2/pptp.c 2009-06-20 10:53:07.000000000 +0200 |
19 |
@@ -59,11 +59,7 @@ |
20 |
#include "pptp_callmgr.h" |
21 |
#include "pptp_gre.h" |
22 |
#include "version.h" |
23 |
-#if defined(__linux__) |
24 |
-#include <sys/prctl.h> |
25 |
-#else |
26 |
#include "inststr.h" |
27 |
-#endif |
28 |
#include "util.h" |
29 |
#include "pptp_quirks.h" |
30 |
#include "pqueue.h" |
31 |
@@ -394,12 +390,7 @@ |
32 |
char *tty_name = ttyname(tty_fd); |
33 |
snprintf(buf, sizeof(buf), "pptp: GRE-to-PPP gateway on %s", |
34 |
tty_name ? tty_name : "(null)"); |
35 |
-#ifdef PR_SET_NAME |
36 |
- rc = prctl(PR_SET_NAME, "pptpgw", 0, 0, 0); |
37 |
- if (rc != 0) perror("prctl"); |
38 |
-#else |
39 |
inststr(argc, argv, envp, buf); |
40 |
-#endif |
41 |
if (sigsetjmp(env, 1)!= 0) goto shutdown; |
42 |
|
43 |
signal(SIGINT, sighandler); |
44 |
@@ -495,13 +486,7 @@ |
45 |
char *my_argv[3] = { argv[0], inet_ntoa(inetaddr), phonenr }; |
46 |
char buf[128]; |
47 |
snprintf(buf, sizeof(buf), "pptp: call manager for %s", my_argv[1]); |
48 |
-#ifdef PR_SET_NAME |
49 |
- int rc; |
50 |
- rc = prctl(PR_SET_NAME, "pptpcm", 0, 0, 0); |
51 |
- if (rc != 0) perror("prctl"); |
52 |
-#else |
53 |
inststr(argc, argv, envp, buf); |
54 |
-#endif |
55 |
exit(callmgr_main(3, my_argv, envp)); |
56 |
} |