~ubuntu-branches/ubuntu/raring/heimdal/raring

« back to all changes in this revision

Viewing changes to debian/patches/041_hurd_maxhostnamelen

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2011-10-03 23:50:05 UTC
  • mfrom: (1.1.15) (2.2.23 sid)
  • Revision ID: package-import@ubuntu.com-20111003235005-0voibbgdhyqmtp6w
Tags: 1.5.dfsg.1-3
Add conflicts with kcc to heimdal-clients. Closes: #644138

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
=== modified file 'appl/gssmask/gssmask.c'
 
2
--- old/appl/gssmask/gssmask.c  2011-05-21 18:57:31 +0000
 
3
+++ new/appl/gssmask/gssmask.c  2011-10-01 13:14:49 +0000
 
4
@@ -55,7 +55,7 @@
 
5
     struct handle *handles;
 
6
     struct sockaddr_storage sa;
 
7
     socklen_t salen;
 
8
-    char servername[MAXHOSTNAMELEN];
 
9
+    char servername[MaxHostNameLen];
 
10
 };
 
11
 
 
12
 FILE *logfile;
 
13
@@ -1092,7 +1092,7 @@
 
14
     if (moniker) {
 
15
        c->moniker = estrdup(moniker);
 
16
     } else {
 
17
-       char hostname[MAXHOSTNAMELEN];
 
18
+       char hostname[MaxHostNameLen];
 
19
        gethostname(hostname, sizeof(hostname));
 
20
        asprintf(&c->moniker, "gssmask: %s:%d", hostname, port);
 
21
     }
 
22
 
 
23
=== modified file 'appl/kf/kfd.c'
 
24
--- old/appl/kf/kfd.c   2009-11-25 05:42:02 +0000
 
25
+++ new/appl/kf/kfd.c   2011-10-01 13:14:49 +0000
 
26
@@ -128,7 +128,7 @@
 
27
     krb5_ticket *ticket;
 
28
     char *name;
 
29
     char ret_string[10];
 
30
-    char hostname[MAXHOSTNAMELEN];
 
31
+    char hostname[MaxHostNameLen];
 
32
     krb5_data data;
 
33
     krb5_data remotename;
 
34
     krb5_data tk_file;
 
35
 
 
36
=== modified file 'appl/login/login_access.c'
 
37
--- old/appl/login/login_access.c       2008-09-13 09:21:03 +0000
 
38
+++ new/appl/login/login_access.c       2011-10-01 13:14:49 +0000
 
39
@@ -163,11 +163,11 @@
 
40
 
 
41
 static char *myhostname(void)
 
42
 {
 
43
-    static char name[MAXHOSTNAMELEN + 1] = "";
 
44
+    static char name[MaxHostNameLen + 1] = "";
 
45
 
 
46
     if (name[0] == 0) {
 
47
        gethostname(name, sizeof(name));
 
48
-       name[MAXHOSTNAMELEN] = 0;
 
49
+       name[MaxHostNameLen] = 0;
 
50
     }
 
51
     return (name);
 
52
 }
 
53
 
 
54
=== modified file 'appl/test/tcp_server.c'
 
55
--- old/appl/test/tcp_server.c  2009-11-25 05:42:02 +0000
 
56
+++ new/appl/test/tcp_server.c  2011-10-01 13:14:49 +0000
 
57
@@ -44,7 +44,7 @@
 
58
     krb5_principal server;
 
59
     krb5_ticket *ticket;
 
60
     char *name;
 
61
-    char hostname[MAXHOSTNAMELEN];
 
62
+    char hostname[MaxHostNameLen];
 
63
     krb5_data packet;
 
64
     krb5_data data;
 
65
     uint32_t len, net_len;
 
66
 
 
67
=== modified file 'lib/gssapi/spnego/accept_sec_context.c'
 
68
--- old/lib/gssapi/spnego/accept_sec_context.c  2011-05-21 18:57:31 +0000
 
69
+++ new/lib/gssapi/spnego/accept_sec_context.c  2011-10-01 13:14:49 +0000
 
70
@@ -366,7 +366,7 @@
 
71
     if (verify_p) {
 
72
        gss_name_t name = GSS_C_NO_NAME;
 
73
        gss_buffer_desc namebuf;
 
74
-       char *str = NULL, *host, hostname[MAXHOSTNAMELEN];
 
75
+       char *str = NULL, *host, hostname[MaxHostNameLen];
 
76
 
 
77
        host = getenv("GSSAPI_SPNEGO_NAME");
 
78
        if (host == NULL || issuid()) {
 
79
 
 
80
=== modified file 'lib/krb5/get_addrs.c'
 
81
--- old/lib/krb5/get_addrs.c    2011-04-05 05:45:33 +0000
 
82
+++ new/lib/krb5/get_addrs.c    2011-10-01 13:14:49 +0000
 
83
@@ -47,7 +47,7 @@
 
84
 gethostname_fallback (krb5_context context, krb5_addresses *res)
 
85
 {
 
86
     krb5_error_code ret;
 
87
-    char hostname[MAXHOSTNAMELEN];
 
88
+    char hostname[MaxHostNameLen];
 
89
     struct hostent *hostent;
 
90
 
 
91
     if (gethostname (hostname, sizeof(hostname))) {
 
92
 
 
93
=== modified file 'lib/krb5/get_host_realm.c'
 
94
--- old/lib/krb5/get_host_realm.c       2011-04-30 03:25:05 +0000
 
95
+++ new/lib/krb5/get_host_realm.c       2011-10-01 13:14:49 +0000
 
96
@@ -93,7 +93,7 @@
 
97
               krb5_realm **realms)
 
98
 {
 
99
     static const char *default_labels[] = { "_kerberos", NULL };
 
100
-    char dom[MAXHOSTNAMELEN];
 
101
+    char dom[MaxHostNameLen];
 
102
     struct rk_dns_reply *r;
 
103
     const char **labels;
 
104
     char **config_labels;
 
105
@@ -221,7 +221,7 @@
 
106
                    krb5_realm **realms)
 
107
 {
 
108
     const char *host = targethost;
 
109
-    char hostname[MAXHOSTNAMELEN];
 
110
+    char hostname[MaxHostNameLen];
 
111
     krb5_error_code ret;
 
112
     int use_dns;
 
113
 
 
114
 
 
115
=== modified file 'lib/krb5/krbhst-test.c'
 
116
--- old/lib/krb5/krbhst-test.c  2009-05-04 06:17:40 +0000
 
117
+++ new/lib/krb5/krbhst-test.c  2011-10-01 13:14:49 +0000
 
118
@@ -85,7 +85,7 @@
 
119
     krb5_init_context (&context);
 
120
     for(i = 0; i < argc; i++) {
 
121
        krb5_krbhst_handle handle;
 
122
-       char host[MAXHOSTNAMELEN];
 
123
+       char host[MaxHostNameLen];
 
124
 
 
125
        for (j = 0; j < sizeof(types)/sizeof(*types); ++j) {
 
126
            printf ("%s for %s:\n", type_str[j], argv[i]);
 
127
 
 
128
=== modified file 'lib/krb5/krbhst.c'
 
129
--- old/lib/krb5/krbhst.c       2011-05-21 18:57:31 +0000
 
130
+++ new/lib/krb5/krbhst.c       2011-10-01 13:14:49 +0000
 
131
@@ -1020,7 +1020,7 @@
 
132
     krb5_error_code ret;
 
133
     int nhost = 0;
 
134
     krb5_krbhst_handle handle;
 
135
-    char host[MAXHOSTNAMELEN];
 
136
+    char host[MaxHostNameLen];
 
137
     krb5_krbhst_info *hostinfo;
 
138
 
 
139
     ret = krb5_krbhst_init(context, realm, type, &handle);
 
140
 
 
141
=== modified file 'lib/krb5/principal.c'
 
142
--- old/lib/krb5/principal.c    2011-05-21 18:57:31 +0000
 
143
+++ new/lib/krb5/principal.c    2011-10-01 13:14:49 +0000
 
144
@@ -1037,7 +1037,7 @@
 
145
                         krb5_principal *ret_princ)
 
146
 {
 
147
     krb5_error_code ret;
 
148
-    char localhost[MAXHOSTNAMELEN];
 
149
+    char localhost[MaxHostNameLen];
 
150
     char **realms, *host = NULL;
 
151
 
 
152
     if(type != KRB5_NT_SRV_HST && type != KRB5_NT_UNKNOWN) {
 
153
 
 
154
=== modified file 'lib/krb5/verify_init.c'
 
155
--- old/lib/krb5/verify_init.c  2011-05-21 18:57:31 +0000
 
156
+++ new/lib/krb5/verify_init.c  2011-10-01 13:14:49 +0000
 
157
@@ -86,7 +86,7 @@
 
158
     krb5_data_zero (&req);
 
159
 
 
160
     if (ap_req_server == NULL) {
 
161
-       char local_hostname[MAXHOSTNAMELEN];
 
162
+       char local_hostname[MaxHostNameLen];
 
163
 
 
164
        if (gethostname (local_hostname, sizeof(local_hostname)) < 0) {
 
165
            ret = errno;
 
166
 
 
167
=== modified file 'lib/roken/getaddrinfo_hostspec.c'
 
168
--- old/lib/roken/getaddrinfo_hostspec.c        2011-05-21 18:57:31 +0000
 
169
+++ new/lib/roken/getaddrinfo_hostspec.c        2011-10-01 13:14:49 +0000
 
170
@@ -45,7 +45,7 @@
 
171
 {
 
172
     const char *p;
 
173
     char portstr[NI_MAXSERV];
 
174
-    char host[MAXHOSTNAMELEN];
 
175
+    char host[MaxHostNameLen];
 
176
     struct addrinfo hints;
 
177
     int hostspec_len;
 
178
 
 
179