1 |
pinkbyte 13/12/02 11:43:54 |
2 |
|
3 |
Added: pptpclient-1.8.0-process-name.patch |
4 |
Log: |
5 |
Version bump, drop old |
6 |
|
7 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 net-dialup/pptpclient/files/pptpclient-1.8.0-process-name.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/pptpclient/files/pptpclient-1.8.0-process-name.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/pptpclient/files/pptpclient-1.8.0-process-name.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: pptpclient-1.8.0-process-name.patch |
16 |
=================================================================== |
17 |
--- pptp.c.orig 2013-10-23 12:10:46.000000000 +0400 |
18 |
+++ pptp.c 2013-11-26 13:05:43.259867888 +0400 |
19 |
@@ -60,9 +60,6 @@ |
20 |
#include "pptp_callmgr.h" |
21 |
#include "pptp_gre.h" |
22 |
#include "version.h" |
23 |
-#if defined(__linux__) |
24 |
-#include <sys/prctl.h> |
25 |
-#endif |
26 |
#include "inststr.h" |
27 |
#include "util.h" |
28 |
#include "pptp_quirks.h" |
29 |
@@ -413,12 +410,7 @@ |
30 |
tty_name = ttyname(tty_fd); |
31 |
snprintf(buf, sizeof(buf), "pptp: GRE-to-PPP gateway on %s", |
32 |
tty_name ? tty_name : "(null)"); |
33 |
-#ifdef PR_SET_NAME |
34 |
- rc = prctl(PR_SET_NAME, "pptpgw", 0, 0, 0); |
35 |
- if (rc != 0) perror("prctl"); |
36 |
-#else |
37 |
inststr(argc, argv, envp, buf); |
38 |
-#endif |
39 |
if (sigsetjmp(env, 1)!= 0) goto shutdown; |
40 |
|
41 |
signal(SIGINT, sighandler); |
42 |
@@ -517,13 +509,7 @@ |
43 |
char *my_argv[3] = { argv[0], inet_ntoa(inetaddr), phonenr }; |
44 |
char buf[128]; |
45 |
snprintf(buf, sizeof(buf), "pptp: call manager for %s", my_argv[1]); |
46 |
-#ifdef PR_SET_NAME |
47 |
- int rc; |
48 |
- rc = prctl(PR_SET_NAME, "pptpcm", 0, 0, 0); |
49 |
- if (rc != 0) perror("prctl"); |
50 |
-#else |
51 |
inststr(argc, argv, envp, buf); |
52 |
-#endif |
53 |
exit(callmgr_main(3, my_argv, envp)); |
54 |
} |