Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | extern ServerOptions options; | - |
6 | extern int use_privsep; | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | static int | - |
15 | check_rhosts_file(const char *filename, const char *hostname, | - |
16 | const char *ipaddr, const char *client_user, | - |
17 | const char *server_user) | - |
18 | { | - |
19 | FILE *f; | - |
20 | | - |
21 | char buf[1024]; | - |
22 | int fd; | - |
23 | struct stat st; | - |
24 | | - |
25 | | - |
26 | if ((TRUE | never evaluated | FALSE | never evaluated |
fd = open(filename, TRUE | never evaluated | FALSE | never evaluated |
| 0 |
27 | 00TRUE | never evaluated | FALSE | never evaluated |
| 0 |
28 | |TRUE | never evaluated | FALSE | never evaluated |
| 0 |
29 | 04000TRUE | never evaluated | FALSE | never evaluated |
| 0 |
30 | )) == -1TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
31 | return never executed: return 0; 0;never executed: return 0; | 0 |
32 | if (fstat(fd, &st) == -1TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
33 | close(fd); | - |
34 | return never executed: return 0; 0;never executed: return 0; | 0 |
35 | } | - |
36 | if (!TRUE | never evaluated | FALSE | never evaluated |
| 0 |
37 | ((((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
38 | st.st_modeTRUE | never evaluated | FALSE | never evaluated |
| 0 |
39 | )) & 0170000) == (0100000))TRUE | never evaluated | FALSE | never evaluated |
| 0 |
40 | ) { | - |
41 | logit("User %s hosts file %s is not a regular file", | - |
42 | server_user, filename); | - |
43 | close(fd); | - |
44 | return never executed: return 0; 0;never executed: return 0; | 0 |
45 | } | - |
46 | unset_nonblock(fd); | - |
47 | if ((TRUE | never evaluated | FALSE | never evaluated |
f = fdopen(fd, "r")) == TRUE | never evaluated | FALSE | never evaluated |
| 0 |
48 | ((void *)0)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
49 | ) { | - |
50 | close(fd); | - |
51 | return never executed: return 0; 0;never executed: return 0; | 0 |
52 | } | - |
53 | while (fgets(buf, sizeof(buf), f)TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
54 | | - |
55 | char hostbuf[1024], userbuf[1024], dummy[1024]; | - |
56 | char *host, *user, *cp; | - |
57 | int negated; | - |
58 | | - |
59 | for (cp = buf; *TRUE | never evaluated | FALSE | never evaluated |
cp == ' 'TRUE | never evaluated | FALSE | never evaluated |
|| *TRUE | never evaluated | FALSE | never evaluated |
cp == '\t'TRUE | never evaluated | FALSE | never evaluated |
; cp++) | 0 |
60 | ; never executed: ; | 0 |
61 | if (*TRUE | never evaluated | FALSE | never evaluated |
cp == '#'TRUE | never evaluated | FALSE | never evaluated |
|| *TRUE | never evaluated | FALSE | never evaluated |
cp == '\n'TRUE | never evaluated | FALSE | never evaluated |
|| !*cpTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
62 | continue; never executed: continue; | 0 |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
68 | if ( | - |
69 | (TRUE | never evaluated | FALSE | never evaluated |
__extension__ (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
70 | 7TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
71 | )TRUE | never evaluated | FALSE | never evaluated |
&& ((__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
72 | cpTRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
73 | )TRUE | never evaluated | FALSE | never evaluated |
&& strlen (TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
74 | cpTRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
75 | ) < ((size_t) (TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
76 | 7TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
77 | ))TRUE | never evaluated | FALSE | never evaluated |
) || (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
78 | "NO_PLUS"TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
79 | )TRUE | never evaluated | FALSE | never evaluated |
&& strlen (TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
80 | "NO_PLUS"TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
81 | ) < ((size_t) (TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
82 | 7TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
83 | ))TRUE | never evaluated | FALSE | never evaluated |
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
84 | cpTRUE | never evaluated | FALSE | never evaluated |
| 0 |
85 | ) && __builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
86 | "NO_PLUS"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
87 | ) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
88 | cpTRUE | never evaluated | FALSE | never evaluated |
| 0 |
89 | ), __s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
90 | "NO_PLUS"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
91 | ), (!((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
92 | cpTRUE | never evaluated | FALSE | never evaluated |
| 0 |
93 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
94 | cpTRUE | never evaluated | FALSE | never evaluated |
| 0 |
95 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
96 | "NO_PLUS"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
97 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
98 | "NO_PLUS"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
99 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
100 | cpTRUE | never evaluated | FALSE | never evaluated |
| 0 |
101 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
102 | "NO_PLUS"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
103 | ) : (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
104 | cpTRUE | never evaluated | FALSE | never evaluated |
| 0 |
105 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
106 | cpTRUE | never evaluated | FALSE | never evaluated |
| 0 |
107 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
108 | cpTRUE | never evaluated | FALSE | never evaluated |
| 0 |
109 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
110 | cpTRUE | never evaluated | FALSE | never evaluated |
| 0 |
111 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
112 | "NO_PLUS"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
113 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
114 | "NO_PLUS"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
115 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
116 | "NO_PLUS"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
117 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
118 | cpTRUE | never evaluated | FALSE | never evaluated |
| 0 |
119 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
120 | "NO_PLUS"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
121 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
122 | "NO_PLUS"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
123 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
124 | cpTRUE | never evaluated | FALSE | never evaluated |
| 0 |
125 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
126 | cpTRUE | never evaluated | FALSE | never evaluated |
| 0 |
127 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
128 | cpTRUE | never evaluated | FALSE | never evaluated |
| 0 |
129 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( cp ))[3] - __s2[3]); | 0 |
130 | cpTRUE | never evaluated | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( cp ))[3] - __s2[3]); | 0 |
131 | ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
132 | "NO_PLUS"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
133 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
134 | "NO_PLUS"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
135 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
136 | "NO_PLUS"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
137 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
138 | "NO_PLUS"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
139 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
140 | cpTRUE | never evaluated | FALSE | never evaluated |
| 0 |
141 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
142 | cpTRUE | never evaluated | FALSE | never evaluated |
| 0 |
143 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
144 | cpTRUE | never evaluated | FALSE | never evaluated |
| 0 |
145 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
146 | cpTRUE | never evaluated | FALSE | never evaluated |
| 0 |
147 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
148 | "NO_PLUS"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
149 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
150 | cpTRUE | never evaluated | FALSE | never evaluated |
| 0 |
151 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
152 | "NO_PLUS"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
153 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
154 | "NO_PLUS"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
155 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
156 | "NO_PLUS"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
157 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "NO_PLUS" ))[3] - __s2[3]); | 0 |
158 | "NO_PLUS"TRUE | never evaluated | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( "NO_PLUS" ))[3] - __s2[3]); | 0 |
159 | ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
160 | cpTRUE | never evaluated | FALSE | never evaluated |
| 0 |
161 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
162 | "NO_PLUS"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
163 | )))); }) : strncmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
164 | cpTRUE | never evaluated | FALSE | never evaluated |
| 0 |
165 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
166 | "NO_PLUS"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
167 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
168 | 7TRUE | never evaluated | FALSE | never evaluated |
| 0 |
169 | ))) TRUE | never evaluated | FALSE | never evaluated |
| 0 |
170 | == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
171 | continue; never executed: continue; | 0 |
172 | | - |
173 | | - |
174 | | - |
175 | | - |
176 | | - |
177 | switch (sscanf(buf, "%1023s %1023s %1023s", hostbuf, userbuf, | - |
178 | dummy)) { | - |
179 | case never executed: case 0: 0:never executed: case 0: | 0 |
180 | auth_debug_add("Found empty line in %.100s.", filename); | - |
181 | continue; never executed: continue; | 0 |
182 | case never executed: case 1: 1:never executed: case 1: | 0 |
183 | | - |
184 | strlcpy(userbuf, server_user, sizeof(userbuf)); | - |
185 | break; never executed: break; | 0 |
186 | case never executed: case 2: 2:never executed: case 2: | 0 |
187 | | - |
188 | break; never executed: break; | 0 |
189 | case never executed: case 3: 3:never executed: case 3: | 0 |
190 | auth_debug_add("Found garbage in %.100s.", filename); | - |
191 | continue; never executed: continue; | 0 |
192 | default never executed: default: :never executed: default: | 0 |
193 | | - |
194 | continue; never executed: continue; | 0 |
195 | } | - |
196 | | - |
197 | host = hostbuf; | - |
198 | user = userbuf; | - |
199 | negated = 0; | - |
200 | | - |
201 | | - |
202 | if (host[0] == '-'TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
203 | negated = 1; | - |
204 | host++; | - |
205 | } never executed: end of block else if (host[0] == '+'TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
206 | host++; never executed: host++; | 0 |
207 | | - |
208 | if (user[0] == '-'TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
209 | negated = 1; | - |
210 | user++; | - |
211 | } never executed: end of block else if (user[0] == '+'TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
212 | user++; never executed: user++; | 0 |
213 | | - |
214 | | - |
215 | if (!host[0]TRUE | never evaluated | FALSE | never evaluated |
|| !user[0]TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
216 | | - |
217 | auth_debug_add("Ignoring wild host/user names " | - |
218 | "in %.100s.", filename); | - |
219 | continue; never executed: continue; | 0 |
220 | } | - |
221 | | - |
222 | if (host[0] == '@'TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
223 | if (!innetgr(host + 1, hostname, TRUE | never evaluated | FALSE | never evaluated |
| 0 |
224 | ((void *)0)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
225 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
226 | ((void *)0)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
227 | )TRUE | never evaluated | FALSE | never evaluated |
&& | 0 |
228 | !innetgr(host + 1, ipaddr, TRUE | never evaluated | FALSE | never evaluated |
| 0 |
229 | ((void *)0)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
230 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
231 | ((void *)0)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
232 | )TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
233 | continue; never executed: continue; | 0 |
234 | } never executed: end of block else if (strcasecmp(host, hostname)TRUE | never evaluated | FALSE | never evaluated |
&& | 0 |
235 | | - |
236 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
237 | hostTRUE | never evaluated | FALSE | never evaluated |
| 0 |
238 | ) && __builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
239 | ipaddrTRUE | never evaluated | FALSE | never evaluated |
| 0 |
240 | ) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
241 | hostTRUE | never evaluated | FALSE | never evaluated |
| 0 |
242 | ), __s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
243 | ipaddrTRUE | never evaluated | FALSE | never evaluated |
| 0 |
244 | ), (!((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
245 | hostTRUE | never evaluated | FALSE | never evaluated |
| 0 |
246 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
247 | hostTRUE | never evaluated | FALSE | never evaluated |
| 0 |
248 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
249 | ipaddrTRUE | never evaluated | FALSE | never evaluated |
| 0 |
250 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
251 | ipaddrTRUE | never evaluated | FALSE | never evaluated |
| 0 |
252 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
253 | hostTRUE | never evaluated | FALSE | never evaluated |
| 0 |
254 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
255 | ipaddrTRUE | never evaluated | FALSE | never evaluated |
| 0 |
256 | ) : (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
257 | hostTRUE | never evaluated | FALSE | never evaluated |
| 0 |
258 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
259 | hostTRUE | never evaluated | FALSE | never evaluated |
| 0 |
260 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
261 | hostTRUE | never evaluated | FALSE | never evaluated |
| 0 |
262 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
263 | hostTRUE | never evaluated | FALSE | never evaluated |
| 0 |
264 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
265 | ipaddrTRUE | never evaluated | FALSE | never evaluated |
| 0 |
266 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
267 | ipaddrTRUE | never evaluated | FALSE | never evaluated |
| 0 |
268 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
269 | ipaddrTRUE | never evaluated | FALSE | never evaluated |
| 0 |
270 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
271 | hostTRUE | never evaluated | FALSE | never evaluated |
| 0 |
272 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
273 | ipaddrTRUE | never evaluated | FALSE | never evaluated |
| 0 |
274 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
275 | ipaddrTRUE | never evaluated | FALSE | never evaluated |
| 0 |
276 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
277 | hostTRUE | never evaluated | FALSE | never evaluated |
| 0 |
278 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
279 | hostTRUE | never evaluated | FALSE | never evaluated |
| 0 |
280 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
281 | hostTRUE | never evaluated | FALSE | never evaluated |
| 0 |
282 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( host ))[3] - __s2[3]); | 0 |
283 | hostTRUE | never evaluated | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( host ))[3] - __s2[3]); | 0 |
284 | ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
285 | ipaddrTRUE | never evaluated | FALSE | never evaluated |
| 0 |
286 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
287 | ipaddrTRUE | never evaluated | FALSE | never evaluated |
| 0 |
288 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
289 | ipaddrTRUE | never evaluated | FALSE | never evaluated |
| 0 |
290 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
291 | ipaddrTRUE | never evaluated | FALSE | never evaluated |
| 0 |
292 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
293 | hostTRUE | never evaluated | FALSE | never evaluated |
| 0 |
294 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
295 | hostTRUE | never evaluated | FALSE | never evaluated |
| 0 |
296 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
297 | hostTRUE | never evaluated | FALSE | never evaluated |
| 0 |
298 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
299 | hostTRUE | never evaluated | FALSE | never evaluated |
| 0 |
300 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
301 | ipaddrTRUE | never evaluated | FALSE | never evaluated |
| 0 |
302 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
303 | hostTRUE | never evaluated | FALSE | never evaluated |
| 0 |
304 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
305 | ipaddrTRUE | never evaluated | FALSE | never evaluated |
| 0 |
306 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
307 | ipaddrTRUE | never evaluated | FALSE | never evaluated |
| 0 |
308 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
309 | ipaddrTRUE | never evaluated | FALSE | never evaluated |
| 0 |
310 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( ipaddr ))[3] - __s2[3]); | 0 |
311 | ipaddrTRUE | never evaluated | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( ipaddr ))[3] - __s2[3]); | 0 |
312 | ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
313 | hostTRUE | never evaluated | FALSE | never evaluated |
| 0 |
314 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
315 | ipaddrTRUE | never evaluated | FALSE | never evaluated |
| 0 |
316 | )))); }) TRUE | never evaluated | FALSE | never evaluated |
| 0 |
317 | != 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
318 | continue; never executed: continue; | 0 |
319 | | - |
320 | | - |
321 | if (user[0] == '@'TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
322 | if (!innetgr(user + 1, TRUE | never evaluated | FALSE | never evaluated |
| 0 |
323 | ((void *)0)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
324 | , client_user, TRUE | never evaluated | FALSE | never evaluated |
| 0 |
325 | ((void *)0)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
326 | )TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
327 | continue; never executed: continue; | 0 |
328 | } never executed: end of block else if ( | 0 |
329 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
330 | userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
331 | ) && __builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
332 | client_userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
333 | ) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
334 | userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
335 | ), __s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
336 | client_userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
337 | ), (!((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
338 | userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
339 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
340 | userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
341 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
342 | client_userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
343 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
344 | client_userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
345 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
346 | userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
347 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
348 | client_userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
349 | ) : (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
350 | userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
351 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
352 | userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
353 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
354 | userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
355 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
356 | userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
357 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
358 | client_userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
359 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
360 | client_userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
361 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
362 | client_userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
363 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
364 | userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
365 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
366 | client_userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
367 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
368 | client_userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
369 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
370 | userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
371 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
372 | userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
373 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
374 | userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
375 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( user ))[3] - __s2[3]); | 0 |
376 | userTRUE | never evaluated | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( user ))[3] - __s2[3]); | 0 |
377 | ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
378 | client_userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
379 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
380 | client_userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
381 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
382 | client_userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
383 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
384 | client_userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
385 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
386 | userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
387 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
388 | userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
389 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
390 | userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
391 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
392 | userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
393 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
394 | client_userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
395 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
396 | userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
397 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
398 | client_userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
399 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
400 | client_userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
401 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
402 | client_userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
403 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( client_user ))[3] - __s2[3]); | 0 |
404 | client_userTRUE | never evaluated | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( client_user ))[3] - __s2[3]); | 0 |
405 | ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
406 | userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
407 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
408 | client_userTRUE | never evaluated | FALSE | never evaluated |
| 0 |
409 | )))); }) TRUE | never evaluated | FALSE | never evaluated |
| 0 |
410 | != 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
411 | continue; never executed: continue; | 0 |
412 | | - |
413 | | - |
414 | fclose(f); | - |
415 | | - |
416 | | - |
417 | if (negatedTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
418 | auth_debug_add("Matched negative entry in %.100s.", | - |
419 | filename); | - |
420 | return never executed: return 0; 0;never executed: return 0; | 0 |
421 | } | - |
422 | | - |
423 | return never executed: return 1; 1;never executed: return 1; | 0 |
424 | } | - |
425 | | - |
426 | | - |
427 | fclose(f); | - |
428 | return never executed: return 0; 0;never executed: return 0; | 0 |
429 | } | - |
430 | | - |
431 | | - |
432 | | - |
433 | | - |
434 | | - |
435 | | - |
436 | int | - |
437 | auth_rhosts2(struct passwd *pw, const char *client_user, const char *hostname, | - |
438 | const char *ipaddr) | - |
439 | { | - |
440 | char buf[1024]; | - |
441 | struct stat st; | - |
442 | static const char *rhosts_files[] = {".shosts", ".rhosts", | - |
443 | ((void *)0) | - |
444 | }; | - |
445 | u_int rhosts_file_index; | - |
446 | | - |
447 | debug2("auth_rhosts2: clientuser %s hostname %s ipaddr %s", | - |
448 | client_user, hostname, ipaddr); | - |
449 | | - |
450 | | - |
451 | temporarily_use_uid(pw); | - |
452 | | - |
453 | | - |
454 | | - |
455 | | - |
456 | | - |
457 | | - |
458 | for (rhosts_file_index = 0; rhosts_files[rhosts_file_index]TRUE | never evaluated | FALSE | never evaluated |
; | 0 |
459 | rhosts_file_index++) { | - |
460 | | - |
461 | snprintf(buf, sizeof buf, "%.500s/%.100s", | - |
462 | pw->pw_dir, rhosts_files[rhosts_file_index]); | - |
463 | if (stat(buf, &st) >= 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
464 | break; never executed: break; | 0 |
465 | } never executed: end of block | 0 |
466 | | - |
467 | restore_uid(); | - |
468 | | - |
469 | | - |
470 | | - |
471 | | - |
472 | | - |
473 | if (!rhosts_files[rhosts_file_index]TRUE | never evaluated | FALSE | never evaluated |
&& | 0 |
474 | stat("/etc/hosts.equiv", &st) < 0TRUE | never evaluated | FALSE | never evaluated |
&& | 0 |
475 | stat("/var/tmp/openssh-test/etc" "/shosts.equiv", &st) < 0TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
476 | debug3("%s: no hosts access files exist", __func__); | - |
477 | return never executed: return 0; 0;never executed: return 0; | 0 |
478 | } | - |
479 | | - |
480 | | - |
481 | | - |
482 | | - |
483 | | - |
484 | if (pw->pw_uid == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
485 | debug3("%s: root user, ignoring system hosts files", __func__); never executed: debug3("%s: root user, ignoring system hosts files", __func__); | 0 |
486 | else { | - |
487 | if (check_rhosts_file("/etc/hosts.equiv", hostname, ipaddr,TRUE | never evaluated | FALSE | never evaluated |
| 0 |
488 | client_user, pw->pw_name)TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
489 | auth_debug_add("Accepted for %.100s [%.100s] by " | - |
490 | "/etc/hosts.equiv.", hostname, ipaddr); | - |
491 | return never executed: return 1; 1;never executed: return 1; | 0 |
492 | } | - |
493 | if (check_rhosts_file("/var/tmp/openssh-test/etc" "/shosts.equiv", hostname, ipaddr,TRUE | never evaluated | FALSE | never evaluated |
| 0 |
494 | client_user, pw->pw_name)TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
495 | auth_debug_add("Accepted for %.100s [%.100s] by " | - |
496 | "%.100s.", hostname, ipaddr, "/var/tmp/openssh-test/etc" "/shosts.equiv"); | - |
497 | return never executed: return 1; 1;never executed: return 1; | 0 |
498 | } | - |
499 | } never executed: end of block | 0 |
500 | | - |
501 | | - |
502 | | - |
503 | | - |
504 | | - |
505 | if (stat(pw->pw_dir, &st) < 0TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
506 | logit("Rhosts authentication refused for %.100s: " | - |
507 | "no home directory %.200s", pw->pw_name, pw->pw_dir); | - |
508 | auth_debug_add("Rhosts authentication refused for %.100s: " | - |
509 | "no home directory %.200s", pw->pw_name, pw->pw_dir); | - |
510 | return never executed: return 0; 0;never executed: return 0; | 0 |
511 | } | - |
512 | if (options.strict_modesTRUE | never evaluated | FALSE | never evaluated |
&& | 0 |
513 | ((st.st_uid != 0TRUE | never evaluated | FALSE | never evaluated |
&& st.st_uid != pw->pw_uidTRUE | never evaluated | FALSE | never evaluated |
) || | 0 |
514 | (TRUE | never evaluated | FALSE | never evaluated |
st.st_mode & 022) != 0TRUE | never evaluated | FALSE | never evaluated |
)) { | 0 |
515 | logit("Rhosts authentication refused for %.100s: " | - |
516 | "bad ownership or modes for home directory.", pw->pw_name); | - |
517 | auth_debug_add("Rhosts authentication refused for %.100s: " | - |
518 | "bad ownership or modes for home directory.", pw->pw_name); | - |
519 | return never executed: return 0; 0;never executed: return 0; | 0 |
520 | } | - |
521 | | - |
522 | temporarily_use_uid(pw); | - |
523 | | - |
524 | | - |
525 | for (rhosts_file_index = 0; rhosts_files[rhosts_file_index]TRUE | never evaluated | FALSE | never evaluated |
; | 0 |
526 | rhosts_file_index++) { | - |
527 | | - |
528 | snprintf(buf, sizeof buf, "%.500s/%.100s", | - |
529 | pw->pw_dir, rhosts_files[rhosts_file_index]); | - |
530 | if (stat(buf, &st) < 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
531 | continue; never executed: continue; | 0 |
532 | | - |
533 | | - |
534 | | - |
535 | | - |
536 | | - |
537 | | - |
538 | | - |
539 | if (options.strict_modesTRUE | never evaluated | FALSE | never evaluated |
&& | 0 |
540 | ((st.st_uid != 0TRUE | never evaluated | FALSE | never evaluated |
&& st.st_uid != pw->pw_uidTRUE | never evaluated | FALSE | never evaluated |
) || | 0 |
541 | (TRUE | never evaluated | FALSE | never evaluated |
st.st_mode & 022) != 0TRUE | never evaluated | FALSE | never evaluated |
)) { | 0 |
542 | logit("Rhosts authentication refused for %.100s: bad modes for %.200s", | - |
543 | pw->pw_name, buf); | - |
544 | auth_debug_add("Bad file modes for %.200s", buf); | - |
545 | continue; never executed: continue; | 0 |
546 | } | - |
547 | | - |
548 | | - |
549 | | - |
550 | | - |
551 | if (options.ignore_rhostsTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
552 | auth_debug_add("Server has been configured to " | - |
553 | "ignore %.100s.", rhosts_files[rhosts_file_index]); | - |
554 | continue; never executed: continue; | 0 |
555 | } | - |
556 | | - |
557 | if (check_rhosts_file(buf, hostname, ipaddr,TRUE | never evaluated | FALSE | never evaluated |
| 0 |
558 | client_user, pw->pw_name)TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
559 | auth_debug_add("Accepted by %.100s.", | - |
560 | rhosts_files[rhosts_file_index]); | - |
561 | | - |
562 | restore_uid(); | - |
563 | auth_debug_add("Accepted host %s ip %s client_user " | - |
564 | "%s server_user %s", hostname, ipaddr, | - |
565 | client_user, pw->pw_name); | - |
566 | return never executed: return 1; 1;never executed: return 1; | 0 |
567 | } | - |
568 | } never executed: end of block | 0 |
569 | | - |
570 | | - |
571 | restore_uid(); | - |
572 | return never executed: return 0; 0;never executed: return 0; | 0 |
573 | } | - |
| | |