Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 328081 | Differences between
and this patch

Collapse All | Expand All

(-)230_all_MAX_ARG.patch.orig (-6 / +32 lines)
Lines 6-12 Link Here
6
6
7
--- netkit-rsh-0.17/rexecd/rexecd.c
7
--- netkit-rsh-0.17/rexecd/rexecd.c
8
+++ netkit-rsh-0.17/rexecd/rexecd.c
8
+++ netkit-rsh-0.17/rexecd/rexecd.c
9
@@ -234,7 +234,8 @@
9
@@ -103,6 +103,12 @@ char rcsid[] =
10
 struct from_host from_host;
11
 #endif
12
 
13
+#ifndef _POSIX_ARG_MAX
14
+# if defined(__FreeBSD__) || defined(__DragonFly__)
15
+#  include <limits.h>
16
+# endif
17
+#endif
18
+
19
 int allow_severity = LOG_INFO;
20
 int deny_severity = LOG_WARNING;
21
 
22
@@ -234,7 +240,8 @@
10
 static void
23
 static void
11
 doit(struct sockaddr_in *fromp)
24
 doit(struct sockaddr_in *fromp)
12
 {
25
 {
Lines 16-22 Link Here
16
 	char user[16], pass[16];
29
 	char user[16], pass[16];
17
 	struct passwd *pwd;
30
 	struct passwd *pwd;
18
 	int s = -1;
31
 	int s = -1;
19
@@ -253,6 +254,15 @@
32
@@ -253,6 +260,15 @@
20
 #endif
33
 #endif
21
 #endif /* USE_PAM */
34
 #endif /* USE_PAM */
22
 
35
 
Lines 32-38 Link Here
32
 	signal(SIGINT, SIG_DFL);
45
 	signal(SIGINT, SIG_DFL);
33
 	signal(SIGQUIT, SIG_DFL);
46
 	signal(SIGQUIT, SIG_DFL);
34
 	signal(SIGTERM, SIG_DFL);
47
 	signal(SIGTERM, SIG_DFL);
35
@@ -302,7 +312,7 @@
48
@@ -302,7 +318,7 @@
36
 
49
 
37
 	getstr(user, sizeof(user), "username too long\n");
50
 	getstr(user, sizeof(user), "username too long\n");
38
 	getstr(pass, sizeof(pass), "password too long\n");
51
 	getstr(pass, sizeof(pass), "password too long\n");
Lines 43-49 Link Here
43
 	       pam_end(pamh, pam_error); exit(1); \
56
 	       pam_end(pamh, pam_error); exit(1); \
44
--- netkit-rsh-0.17/rshd/rshd.c
57
--- netkit-rsh-0.17/rshd/rshd.c
45
+++ netkit-rsh-0.17/rshd/rshd.c
58
+++ netkit-rsh-0.17/rshd/rshd.c
46
@@ -337,7 +337,8 @@
59
@@ -92,6 +92,12 @@ static pam_handle_t *pamh;
60
 
61
 #define	OPTIONS	"ahlLnD"
62
 
63
+#ifndef _POSIX_ARG_MAX
64
+# if defined(__FreeBSD__) || defined(__DragonFly__)
65
+#  include <limits.h>
66
+# endif
67
+#endif
68
+
69
 static int keepalive = 1;
70
 static int check_all = 0;
71
 static int paranoid = 0;
72
@@ -337,7 +343,8 @@
47
 static void
73
 static void
48
 doit(struct sockaddr_in *fromp)
74
 doit(struct sockaddr_in *fromp)
49
 {
75
 {
Lines 53-59 Link Here
53
 	const char *theshell, *shellname;
79
 	const char *theshell, *shellname;
54
 	char locuser[16], remuser[16];
80
 	char locuser[16], remuser[16];
55
 	struct passwd *pwd;
81
 	struct passwd *pwd;
56
@@ -346,6 +347,15 @@
82
@@ -346,6 +353,15 @@
57
 	u_short port;
83
 	u_short port;
58
 	int pv[2], pid, ifd;
84
 	int pv[2], pid, ifd;
59
 
85
 
Lines 69-75 Link Here
69
 	signal(SIGINT, SIG_DFL);
95
 	signal(SIGINT, SIG_DFL);
70
 	signal(SIGQUIT, SIG_DFL);
96
 	signal(SIGQUIT, SIG_DFL);
71
 	signal(SIGTERM, SIG_DFL);
97
 	signal(SIGTERM, SIG_DFL);
72
@@ -382,7 +392,7 @@
98
@@ -382,7 +398,7 @@
73
 
99
 
74
 	getstr(remuser, sizeof(remuser), "remuser");
100
 	getstr(remuser, sizeof(remuser), "remuser");
75
 	getstr(locuser, sizeof(locuser), "locuser");
101
 	getstr(locuser, sizeof(locuser), "locuser");

Return to bug 328081