OpenCoverage

auth-rhosts.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssh/src/auth-rhosts.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5extern ServerOptions options;-
6extern int use_privsep;-
7-
8-
9-
10-
11-
12-
13-
14static int-
15check_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 ((
(fd = open(fil...04000 )) == -1Description
TRUEnever evaluated
FALSEnever evaluated
fd = open(filename,
(fd = open(fil...04000 )) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
27 00
(fd = open(fil...04000 )) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
28 |
(fd = open(fil...04000 )) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
29 04000
(fd = open(fil...04000 )) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
30 )) == -1
(fd = open(fil...04000 )) == -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
31 return
never executed: return 0;
0;
never executed: return 0;
0
32 if (fstat(fd, &st) == -1
fstat(fd, &st) == -1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
33 close(fd);-
34 return
never executed: return 0;
0;
never executed: return 0;
0
35 }-
36 if (!
! (((( st.st_m... == (0100000))Description
TRUEnever evaluated
FALSEnever evaluated
0
37 ((((
! (((( st.st_m... == (0100000))Description
TRUEnever evaluated
FALSEnever evaluated
0
38 st.st_mode
! (((( st.st_m... == (0100000))Description
TRUEnever evaluated
FALSEnever evaluated
0
39 )) & 0170000) == (0100000))
! (((( st.st_m... == (0100000))Description
TRUEnever evaluated
FALSEnever 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 ((
(f = fdopen(fd...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
f = fdopen(fd, "r")) ==
(f = fdopen(fd...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
48 ((void *)0)
(f = fdopen(fd...== ((void *)0)Description
TRUEnever evaluated
FALSEnever 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)
fgets(buf, sizeof(buf), f)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
54-
55 char hostbuf[1024], userbuf[1024], dummy[1024];-
56 char *host, *user, *cp;-
57 int negated;-
58-
59 for (cp = buf; *
*cp == ' 'Description
TRUEnever evaluated
FALSEnever evaluated
cp == ' '
*cp == ' 'Description
TRUEnever evaluated
FALSEnever evaluated
|| *
*cp == '\t'Description
TRUEnever evaluated
FALSEnever evaluated
cp == '\t'
*cp == '\t'Description
TRUEnever evaluated
FALSEnever evaluated
; cp++)
0
60 ;
never executed: ;
0
61 if (*
*cp == '#'Description
TRUEnever evaluated
FALSEnever evaluated
cp == '#'
*cp == '#'Description
TRUEnever evaluated
FALSEnever evaluated
|| *
*cp == '\n'Description
TRUEnever evaluated
FALSEnever evaluated
cp == '\n'
*cp == '\n'Description
TRUEnever evaluated
FALSEnever evaluated
|| !*cp
!*cpDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
62 continue;
never executed: continue;
0
63-
64-
65-
66-
67-
68 if (-
69 (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
__extension__ (__builtin_constant_p (
__builtin_constant_p ( 7 )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
70 7
__builtin_constant_p ( 7 )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
71 )
__builtin_constant_p ( 7 )Description
TRUEnever evaluated
FALSEnever evaluated
&& ((__builtin_constant_p (
__builtin_constant_p ( cp )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
72 cp
__builtin_constant_p ( cp )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
73 )
__builtin_constant_p ( cp )Description
TRUEnever evaluated
FALSEnever evaluated
&& strlen (
strlen ( cp ) ...size_t) ( 7 ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
74 cp
strlen ( cp ) ...size_t) ( 7 ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
75 ) < ((size_t) (
strlen ( cp ) ...size_t) ( 7 ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
76 7
strlen ( cp ) ...size_t) ( 7 ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
77 ))
strlen ( cp ) ...size_t) ( 7 ))Description
TRUEnever evaluated
FALSEnever evaluated
) || (__builtin_constant_p (
__builtin_cons... ( "NO_PLUS" )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
78 "NO_PLUS"
__builtin_cons... ( "NO_PLUS" )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
79 )
__builtin_cons... ( "NO_PLUS" )Description
TRUEnever evaluated
FALSEnever evaluated
&& strlen (
strlen ( "NO_P...size_t) ( 7 ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
80 "NO_PLUS"
strlen ( "NO_P...size_t) ( 7 ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
81 ) < ((size_t) (
strlen ( "NO_P...size_t) ( 7 ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
82 7
strlen ( "NO_P...size_t) ( 7 ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
83 ))
strlen ( "NO_P...size_t) ( 7 ))Description
TRUEnever evaluated
FALSEnever evaluated
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
84 cp
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
85 ) && __builtin_constant_p (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
86 "NO_PLUS"
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
87 ) && (__s1_len = __builtin_strlen (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
88 cp
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
89 ), __s2_len = __builtin_strlen (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
90 "NO_PLUS"
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
91 ), (!((size_t)(const void *)((
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
92 cp
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
93 ) + 1) - (size_t)(const void *)(
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
94 cp
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
95 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
96 "NO_PLUS"
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
97 ) + 1) - (size_t)(const void *)(
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
98 "NO_PLUS"
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
99 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
100 cp
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
101 ,
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
102 "NO_PLUS"
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
103 ) : (__builtin_constant_p (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
104 cp
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
105 ) && ((size_t)(const void *)((
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
106 cp
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
107 ) + 1) - (size_t)(const void *)(
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
108 cp
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
109 ) == 1) && (__s1_len = __builtin_strlen (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
110 cp
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
111 ), __s1_len < 4) ? (__builtin_constant_p (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
112 "NO_PLUS"
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
113 ) && ((size_t)(const void *)((
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
114 "NO_PLUS"
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
115 ) + 1) - (size_t)(const void *)(
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
116 "NO_PLUS"
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
117 ) == 1) ? __builtin_strcmp (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
118 cp
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
119 ,
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
120 "NO_PLUS"
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
121 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
122 "NO_PLUS"
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
123 ); int __result = (((const unsigned char *) (const char *) (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
124 cp
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
125 ))[0] - __s2[0]); if (__s1_len > 0
__s1_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
126 cp
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
127 ))[1] - __s2[1]); if (__s1_len > 1
__s1_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
128 cp
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
129 ))[2] - __s2[2]); if (__s1_len > 2
__s1_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( cp ))[3] - __s2[3]);
0
130 cp
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( cp ))[3] - __s2[3]);
0
131 ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
132 "NO_PLUS"
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
133 ) && ((size_t)(const void *)((
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
134 "NO_PLUS"
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
135 ) + 1) - (size_t)(const void *)(
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
136 "NO_PLUS"
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
137 ) == 1) && (__s2_len = __builtin_strlen (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
138 "NO_PLUS"
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
139 ), __s2_len < 4) ? (__builtin_constant_p (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
140 cp
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
141 ) && ((size_t)(const void *)((
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
142 cp
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
143 ) + 1) - (size_t)(const void *)(
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
144 cp
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
145 ) == 1) ? __builtin_strcmp (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
146 cp
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
147 ,
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
148 "NO_PLUS"
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
149 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
150 cp
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
151 ); int __result = (((const unsigned char *) (const char *) (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
152 "NO_PLUS"
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
153 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
154 "NO_PLUS"
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
155 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
156 "NO_PLUS"
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
157 ))[2] - __s2[2]); if (__s2_len > 2
__s2_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( "NO_PLUS" ))[3] - __s2[3]);
0
158 "NO_PLUS"
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( "NO_PLUS" ))[3] - __s2[3]);
0
159 ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
160 cp
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
161 ,
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
162 "NO_PLUS"
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
163 )))); }) : strncmp (
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
164 cp
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
165 ,
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
166 "NO_PLUS"
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
167 ,
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
168 7
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
169 )))
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
170 == 0
(__extension__..." , 7 ))) == 0Description
TRUEnever evaluated
FALSEnever 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] == '-'
host[0] == '-'Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
203 negated = 1;-
204 host++;-
205 }
never executed: end of block
else if (host[0] == '+'
host[0] == '+'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
206 host++;
never executed: host++;
0
207-
208 if (user[0] == '-'
user[0] == '-'Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
209 negated = 1;-
210 user++;-
211 }
never executed: end of block
else if (user[0] == '+'
user[0] == '+'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
212 user++;
never executed: user++;
0
213-
214-
215 if (!host[0]
!host[0]Description
TRUEnever evaluated
FALSEnever evaluated
|| !user[0]
!user[0]Description
TRUEnever evaluated
FALSEnever 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] == '@'
host[0] == '@'Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
223 if (!innetgr(host + 1, hostname,
!innetgr(host ... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
224 ((void *)0)
!innetgr(host ... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
225 ,
!innetgr(host ... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
226 ((void *)0)
!innetgr(host ... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
227 )
!innetgr(host ... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
&&
0
228 !innetgr(host + 1, ipaddr,
!innetgr(host ... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
229 ((void *)0)
!innetgr(host ... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
230 ,
!innetgr(host ... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
231 ((void *)0)
!innetgr(host ... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
232 )
!innetgr(host ... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
)
0
233 continue;
never executed: continue;
0
234 }
never executed: end of block
else if (strcasecmp(host, hostname)
strcasecmp(host, hostname)Description
TRUEnever evaluated
FALSEnever evaluated
&&
0
235 -
236 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
237 host
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
238 ) && __builtin_constant_p (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
239 ipaddr
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
240 ) && (__s1_len = __builtin_strlen (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
241 host
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
242 ), __s2_len = __builtin_strlen (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
243 ipaddr
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
244 ), (!((size_t)(const void *)((
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
245 host
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
246 ) + 1) - (size_t)(const void *)(
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
247 host
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
248 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
249 ipaddr
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
250 ) + 1) - (size_t)(const void *)(
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
251 ipaddr
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
252 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
253 host
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
254 ,
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
255 ipaddr
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
256 ) : (__builtin_constant_p (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
257 host
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
258 ) && ((size_t)(const void *)((
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
259 host
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
260 ) + 1) - (size_t)(const void *)(
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
261 host
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
262 ) == 1) && (__s1_len = __builtin_strlen (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
263 host
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
264 ), __s1_len < 4) ? (__builtin_constant_p (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
265 ipaddr
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
266 ) && ((size_t)(const void *)((
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
267 ipaddr
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
268 ) + 1) - (size_t)(const void *)(
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
269 ipaddr
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
270 ) == 1) ? __builtin_strcmp (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
271 host
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
272 ,
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
273 ipaddr
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
274 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
275 ipaddr
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
276 ); int __result = (((const unsigned char *) (const char *) (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
277 host
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
278 ))[0] - __s2[0]); if (__s1_len > 0
__s1_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
279 host
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
280 ))[1] - __s2[1]); if (__s1_len > 1
__s1_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
281 host
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
282 ))[2] - __s2[2]); if (__s1_len > 2
__s1_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( host ))[3] - __s2[3]);
0
283 host
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( host ))[3] - __s2[3]);
0
284 ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
285 ipaddr
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
286 ) && ((size_t)(const void *)((
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
287 ipaddr
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
288 ) + 1) - (size_t)(const void *)(
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
289 ipaddr
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
290 ) == 1) && (__s2_len = __builtin_strlen (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
291 ipaddr
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
292 ), __s2_len < 4) ? (__builtin_constant_p (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
293 host
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
294 ) && ((size_t)(const void *)((
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
295 host
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
296 ) + 1) - (size_t)(const void *)(
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
297 host
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
298 ) == 1) ? __builtin_strcmp (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
299 host
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
300 ,
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
301 ipaddr
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
302 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
303 host
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
304 ); int __result = (((const unsigned char *) (const char *) (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
305 ipaddr
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
306 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
307 ipaddr
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
308 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
309 ipaddr
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
310 ))[2] - __s2[2]); if (__s2_len > 2
__s2_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( ipaddr ))[3] - __s2[3]);
0
311 ipaddr
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( ipaddr ))[3] - __s2[3]);
0
312 ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
313 host
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
314 ,
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
315 ipaddr
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
316 )))); })
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
317 != 0
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
318 continue;
never executed: continue;
0
319-
320-
321 if (user[0] == '@'
user[0] == '@'Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
322 if (!innetgr(user + 1,
!innetgr(user ... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
323 ((void *)0)
!innetgr(user ... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
324 , client_user,
!innetgr(user ... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
325 ((void *)0)
!innetgr(user ... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
326 )
!innetgr(user ... ((void *)0) )Description
TRUEnever evaluated
FALSEnever 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 (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
330 user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
331 ) && __builtin_constant_p (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
332 client_user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
333 ) && (__s1_len = __builtin_strlen (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
334 user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
335 ), __s2_len = __builtin_strlen (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
336 client_user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
337 ), (!((size_t)(const void *)((
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
338 user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
339 ) + 1) - (size_t)(const void *)(
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
340 user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
341 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
342 client_user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
343 ) + 1) - (size_t)(const void *)(
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
344 client_user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
345 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
346 user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
347 ,
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
348 client_user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
349 ) : (__builtin_constant_p (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
350 user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
351 ) && ((size_t)(const void *)((
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
352 user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
353 ) + 1) - (size_t)(const void *)(
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
354 user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
355 ) == 1) && (__s1_len = __builtin_strlen (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
356 user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
357 ), __s1_len < 4) ? (__builtin_constant_p (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
358 client_user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
359 ) && ((size_t)(const void *)((
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
360 client_user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
361 ) + 1) - (size_t)(const void *)(
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
362 client_user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
363 ) == 1) ? __builtin_strcmp (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
364 user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
365 ,
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
366 client_user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
367 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
368 client_user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
369 ); int __result = (((const unsigned char *) (const char *) (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
370 user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
371 ))[0] - __s2[0]); if (__s1_len > 0
__s1_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
372 user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
373 ))[1] - __s2[1]); if (__s1_len > 1
__s1_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
374 user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
375 ))[2] - __s2[2]); if (__s1_len > 2
__s1_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( user ))[3] - __s2[3]);
0
376 user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( user ))[3] - __s2[3]);
0
377 ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
378 client_user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
379 ) && ((size_t)(const void *)((
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
380 client_user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
381 ) + 1) - (size_t)(const void *)(
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
382 client_user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
383 ) == 1) && (__s2_len = __builtin_strlen (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
384 client_user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
385 ), __s2_len < 4) ? (__builtin_constant_p (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
386 user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
387 ) && ((size_t)(const void *)((
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
388 user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
389 ) + 1) - (size_t)(const void *)(
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
390 user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
391 ) == 1) ? __builtin_strcmp (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
392 user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
393 ,
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
394 client_user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
395 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
396 user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
397 ); int __result = (((const unsigned char *) (const char *) (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
398 client_user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
399 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
400 client_user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
401 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
402 client_user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
403 ))[2] - __s2[2]); if (__s2_len > 2
__s2_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( client_user ))[3] - __s2[3]);
0
404 client_user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( client_user ))[3] - __s2[3]);
0
405 ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
406 user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
407 ,
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
408 client_user
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
409 )))); })
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
410 != 0
__extension__ ... )))); }) != 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
411 continue;
never executed: continue;
0
412-
413-
414 fclose(f);-
415-
416-
417 if (negated
negatedDescription
TRUEnever evaluated
FALSEnever 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-
436int-
437auth_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]
rhosts_files[r...ts_file_index]Description
TRUEnever evaluated
FALSEnever 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) >= 0
stat(buf, &st) >= 0Description
TRUEnever evaluated
FALSEnever 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]
!rhosts_files[...ts_file_index]Description
TRUEnever evaluated
FALSEnever evaluated
&&
0
474 stat("/etc/hosts.equiv", &st) < 0
stat("/etc/hos...uiv", &st) < 0Description
TRUEnever evaluated
FALSEnever evaluated
&&
0
475 stat("/var/tmp/openssh-test/etc" "/shosts.equiv", &st) < 0
stat("/var/tmp...uiv", &st) < 0Description
TRUEnever evaluated
FALSEnever 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 == 0
pw->pw_uid == 0Description
TRUEnever evaluated
FALSEnever 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,
check_rhosts_f..., pw->pw_name)Description
TRUEnever evaluated
FALSEnever evaluated
0
488 client_user, pw->pw_name)
check_rhosts_f..., pw->pw_name)Description
TRUEnever evaluated
FALSEnever 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,
check_rhosts_f..., pw->pw_name)Description
TRUEnever evaluated
FALSEnever evaluated
0
494 client_user, pw->pw_name)
check_rhosts_f..., pw->pw_name)Description
TRUEnever evaluated
FALSEnever 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) < 0
stat(pw->pw_dir, &st) < 0Description
TRUEnever evaluated
FALSEnever 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_modes
options.strict_modesDescription
TRUEnever evaluated
FALSEnever evaluated
&&
0
513 ((st.st_uid != 0
st.st_uid != 0Description
TRUEnever evaluated
FALSEnever evaluated
&& st.st_uid != pw->pw_uid
st.st_uid != pw->pw_uidDescription
TRUEnever evaluated
FALSEnever evaluated
) ||
0
514 (
(st.st_mode & 022) != 0Description
TRUEnever evaluated
FALSEnever evaluated
st.st_mode & 022) != 0
(st.st_mode & 022) != 0Description
TRUEnever evaluated
FALSEnever 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]
rhosts_files[r...ts_file_index]Description
TRUEnever evaluated
FALSEnever 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) < 0
stat(buf, &st) < 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
531 continue;
never executed: continue;
0
532-
533-
534-
535-
536-
537-
538-
539 if (options.strict_modes
options.strict_modesDescription
TRUEnever evaluated
FALSEnever evaluated
&&
0
540 ((st.st_uid != 0
st.st_uid != 0Description
TRUEnever evaluated
FALSEnever evaluated
&& st.st_uid != pw->pw_uid
st.st_uid != pw->pw_uidDescription
TRUEnever evaluated
FALSEnever evaluated
) ||
0
541 (
(st.st_mode & 022) != 0Description
TRUEnever evaluated
FALSEnever evaluated
st.st_mode & 022) != 0
(st.st_mode & 022) != 0Description
TRUEnever evaluated
FALSEnever 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_rhosts
options.ignore_rhostsDescription
TRUEnever evaluated
FALSEnever 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,
check_rhosts_f..., pw->pw_name)Description
TRUEnever evaluated
FALSEnever evaluated
0
558 client_user, pw->pw_name)
check_rhosts_f..., pw->pw_name)Description
TRUEnever evaluated
FALSEnever 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}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2