OpenCoverage

install.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/install.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8static int selinux_enabled = 0;-
9static -
10 _Bool -
11 use_default_selinux_context = -
12 1-
13 ;-
14static char *owner_name;-
15-
16-
17static uid_t owner_id;-
18-
19-
20-
21static char *group_name;-
22-
23-
24static gid_t group_id;-
25-
26-
27-
28-
29-
30static mode_t mode = (-
31 (0400|0200|0100) -
32 | -
33 (0400 >> 3) -
34 | -
35 (0100 >> 3) -
36 | -
37 ((0400 >> 3) >> 3) -
38 | -
39 ((0100 >> 3) >> 3)-
40 );-
41-
42-
43static mode_t dir_mode = (-
44 (0400|0200|0100) -
45 | -
46 (0400 >> 3) -
47 | -
48 (0100 >> 3) -
49 | -
50 ((0400 >> 3) >> 3) -
51 | -
52 ((0100 >> 3) >> 3)-
53 );-
54-
55-
56-
57-
58-
59static mode_t dir_mode_bits = (-
60 04000 -
61 | -
62 02000 -
63 | -
64 01000 -
65 | -
66 (0400|0200|0100) -
67 | -
68 ((0400|0200|0100) >> 3) -
69 | -
70 (((0400|0200|0100) >> 3) >> 3)-
71 );-
72-
73-
74static -
75 _Bool -
76 copy_only_if_needed;-
77-
78-
79static -
80 _Bool -
81 strip_files;-
82-
83-
84static -
85 _Bool -
86 dir_arg;-
87-
88-
89static char const *strip_program = "strip";-
90-
91-
92-
93enum-
94{-
95 PRESERVE_CONTEXT_OPTION = 0x7f + 1,-
96 STRIP_PROGRAM_OPTION-
97};-
98-
99static struct option const long_options[] =-
100{-
101 {"backup", -
102 2-
103 , -
104 ((void *)0)-
105 , 'b'},-
106 {"compare", -
107 0-
108 , -
109 ((void *)0)-
110 , 'C'},-
111 {"context", -
112 2-
113 , -
114 ((void *)0)-
115 , 'Z'},-
116 {"directory", -
117 0-
118 , -
119 ((void *)0)-
120 , 'd'},-
121 {"group", -
122 1-
123 , -
124 ((void *)0)-
125 , 'g'},-
126 {"mode", -
127 1-
128 , -
129 ((void *)0)-
130 , 'm'},-
131 {"no-target-directory", -
132 0-
133 , -
134 ((void *)0)-
135 , 'T'},-
136 {"owner", -
137 1-
138 , -
139 ((void *)0)-
140 , 'o'},-
141 {"preserve-timestamps", -
142 0-
143 , -
144 ((void *)0)-
145 , 'p'},-
146 {"preserve-context", -
147 0-
148 , -
149 ((void *)0)-
150 , PRESERVE_CONTEXT_OPTION},-
151 {"strip", -
152 0-
153 , -
154 ((void *)0)-
155 , 's'},-
156 {"strip-program", -
157 1-
158 , -
159 ((void *)0)-
160 , STRIP_PROGRAM_OPTION},-
161 {"suffix", -
162 1-
163 , -
164 ((void *)0)-
165 , 'S'},-
166 {"target-directory", -
167 1-
168 , -
169 ((void *)0)-
170 , 't'},-
171 {"verbose", -
172 0-
173 , -
174 ((void *)0)-
175 , 'v'},-
176 {"help", -
177 0-
178 , -
179 ((void *)0)-
180 , GETOPT_HELP_CHAR},-
181 {"version", -
182 0-
183 , -
184 ((void *)0)-
185 , GETOPT_VERSION_CHAR},-
186 {-
187 ((void *)0)-
188 , 0, -
189 ((void *)0)-
190 , 0}-
191};-
192-
193-
194-
195static -
196 _Bool-
197-
198have_same_content (int a_fd, int b_fd)-
199{-
200 enum { CMP_BLOCK_SIZE = 4096 };-
201 static char a_buff[CMP_BLOCK_SIZE];-
202 static char b_buff[CMP_BLOCK_SIZE];-
203-
204 size_t size;-
205 while (0 < (size = full_read (a_fd, a_buff, sizeof a_buff))
0 < (size = fu...izeof a_buff))Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 5 times by 1 test
Evaluated by:
  • ginstall
) {
5-6
206 if (size != full_read (b_fd, b_buff, sizeof b_buff)
size != full_r...sizeof b_buff)Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
)
0-6
207 return
never executed: return 0 ;
never executed: return 0 ;
0
208 0
never executed: return 0 ;
0
209 ;
never executed: return 0 ;
0
210-
211 if (memcmp (a_buff, b_buff, size) != 0
memcmp (a_buff...ff, size) != 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 5 times by 1 test
Evaluated by:
  • ginstall
)
1-5
212 return
executed 1 time by 1 test: return 0 ;
Executed by:
  • ginstall
executed 1 time by 1 test: return 0 ;
Executed by:
  • ginstall
1
213 0
executed 1 time by 1 test: return 0 ;
Executed by:
  • ginstall
1
214 ;
executed 1 time by 1 test: return 0 ;
Executed by:
  • ginstall
1
215 }
executed 5 times by 1 test: end of block
Executed by:
  • ginstall
5
216-
217 return
executed 5 times by 1 test: return size == 0;
Executed by:
  • ginstall
size == 0;
executed 5 times by 1 test: return size == 0;
Executed by:
  • ginstall
5
218}-
219-
220-
221static -
222 _Bool-
223-
224extra_mode (mode_t input)-
225{-
226 mode_t mask = -
227 ((0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3)) -
228 | -
229 0170000-
230 ;-
231 return
executed 40 times by 1 test: return !! (input & ~ mask);
Executed by:
  • ginstall
!! (input & ~ mask);
executed 40 times by 1 test: return !! (input & ~ mask);
Executed by:
  • ginstall
40
232}-
233-
234-
235static -
236 _Bool-
237-
238need_copy (const char *src_name, const char *dest_name,-
239 const struct cp_options *x)-
240{-
241 struct stat src_sb, dest_sb;-
242 int src_fd, dest_fd;-
243 -
244 _Bool -
245 content_match;-
246-
247 if (extra_mode (mode)
extra_mode (mode)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 10 times by 1 test
Evaluated by:
  • ginstall
)
2-10
248 return
executed 2 times by 1 test: return 1 ;
Executed by:
  • ginstall
executed 2 times by 1 test: return 1 ;
Executed by:
  • ginstall
2
249 1
executed 2 times by 1 test: return 1 ;
Executed by:
  • ginstall
2
250 ;
executed 2 times by 1 test: return 1 ;
Executed by:
  • ginstall
2
251-
252-
253 if (lstat (src_name, &src_sb) != 0
lstat (src_name, &src_sb) != 0Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • ginstall
)
0-10
254 return
never executed: return 1 ;
never executed: return 1 ;
0
255 1
never executed: return 1 ;
0
256 ;
never executed: return 1 ;
0
257-
258 if (lstat (dest_name, &dest_sb) != 0
lstat (dest_na...&dest_sb) != 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 9 times by 1 test
Evaluated by:
  • ginstall
)
1-9
259 return
executed 1 time by 1 test: return 1 ;
Executed by:
  • ginstall
executed 1 time by 1 test: return 1 ;
Executed by:
  • ginstall
1
260 1
executed 1 time by 1 test: return 1 ;
Executed by:
  • ginstall
1
261 ;
executed 1 time by 1 test: return 1 ;
Executed by:
  • ginstall
1
262-
263 if (!
! (((( src_sb.... == (0100000))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 8 times by 1 test
Evaluated by:
  • ginstall
1-8
264 ((((
! (((( src_sb.... == (0100000))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 8 times by 1 test
Evaluated by:
  • ginstall
1-8
265 src_sb.st_mode
! (((( src_sb.... == (0100000))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 8 times by 1 test
Evaluated by:
  • ginstall
1-8
266 )) & 0170000) == (0100000))
! (((( src_sb.... == (0100000))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 8 times by 1 test
Evaluated by:
  • ginstall
1-8
267 || !
! (((( dest_sb... == (0100000))Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • ginstall
0-8
268 ((((
! (((( dest_sb... == (0100000))Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • ginstall
0-8
269 dest_sb.st_mode
! (((( dest_sb... == (0100000))Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • ginstall
0-8
270 )) & 0170000) == (0100000))
! (((( dest_sb... == (0100000))Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • ginstall
0-8
271 -
272 || extra_mode (src_sb.st_mode)
extra_mode (src_sb.st_mode)Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • ginstall
|| extra_mode (dest_sb.st_mode)
extra_mode (dest_sb.st_mode)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 7 times by 1 test
Evaluated by:
  • ginstall
)
0-8
273 return
executed 2 times by 1 test: return 1 ;
Executed by:
  • ginstall
executed 2 times by 1 test: return 1 ;
Executed by:
  • ginstall
2
274 1
executed 2 times by 1 test: return 1 ;
Executed by:
  • ginstall
2
275 ;
executed 2 times by 1 test: return 1 ;
Executed by:
  • ginstall
2
276-
277 if (src_sb.st_size != dest_sb.st_size
src_sb.st_size...est_sb.st_sizeDescription
TRUEnever evaluated
FALSEevaluated 7 times by 1 test
Evaluated by:
  • ginstall
0-7
278 || (
(dest_sb.st_mo... 3) )) != modeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
dest_sb.st_mode & (
(dest_sb.st_mo... 3) )) != modeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
1-6
279 04000
(dest_sb.st_mo... 3) )) != modeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
1-6
280 |
(dest_sb.st_mo... 3) )) != modeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
1-6
281 02000
(dest_sb.st_mo... 3) )) != modeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
1-6
282 |
(dest_sb.st_mo... 3) )) != modeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
1-6
283 01000
(dest_sb.st_mo... 3) )) != modeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
1-6
284 |
(dest_sb.st_mo... 3) )) != modeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
1-6
285 (0400|0200|0100)
(dest_sb.st_mo... 3) )) != modeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
1-6
286 |
(dest_sb.st_mo... 3) )) != modeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
1-6
287 ((0400|0200|0100) >> 3)
(dest_sb.st_mo... 3) )) != modeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
1-6
288 |
(dest_sb.st_mo... 3) )) != modeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
1-6
289 (((0400|0200|0100) >> 3) >> 3)
(dest_sb.st_mo... 3) )) != modeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
1-6
290 )) != mode
(dest_sb.st_mo... 3) )) != modeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
)
1-6
291 return
executed 1 time by 1 test: return 1 ;
Executed by:
  • ginstall
executed 1 time by 1 test: return 1 ;
Executed by:
  • ginstall
1
292 1
executed 1 time by 1 test: return 1 ;
Executed by:
  • ginstall
1
293 ;
executed 1 time by 1 test: return 1 ;
Executed by:
  • ginstall
1
294-
295 if (owner_id == (uid_t) -1
owner_id == (uid_t) -1Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
FALSEnever evaluated
)
0-6
296 {-
297 -
298 (*__errno_location ()) -
299 = 0;-
300 uid_t ruid = getuid ();-
301 if ((ruid == (uid_t) -1
ruid == (uid_t) -1Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
&&
0-6
302 (*
(*__errno_location ())Description
TRUEnever evaluated
FALSEnever evaluated
__errno_location ())
(*__errno_location ())Description
TRUEnever evaluated
FALSEnever evaluated
0
303 ) || dest_sb.st_uid != ruid
dest_sb.st_uid != ruidDescription
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
)
0-6
304 return
never executed: return 1 ;
never executed: return 1 ;
0
305 1
never executed: return 1 ;
0
306 ;
never executed: return 1 ;
0
307 }
executed 6 times by 1 test: end of block
Executed by:
  • ginstall
6
308 else if (dest_sb.st_uid != owner_id
dest_sb.st_uid != owner_idDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
309 return
never executed: return 1 ;
never executed: return 1 ;
0
310 1
never executed: return 1 ;
0
311 ;
never executed: return 1 ;
0
312-
313 if (group_id == (uid_t) -1
group_id == (uid_t) -1Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
FALSEnever evaluated
)
0-6
314 {-
315 -
316 (*__errno_location ()) -
317 = 0;-
318 gid_t rgid = getgid ();-
319 if ((rgid == (uid_t) -1
rgid == (uid_t) -1Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
&&
0-6
320 (*
(*__errno_location ())Description
TRUEnever evaluated
FALSEnever evaluated
__errno_location ())
(*__errno_location ())Description
TRUEnever evaluated
FALSEnever evaluated
0
321 ) || dest_sb.st_gid != rgid
dest_sb.st_gid != rgidDescription
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
)
0-6
322 return
never executed: return 1 ;
never executed: return 1 ;
0
323 1
never executed: return 1 ;
0
324 ;
never executed: return 1 ;
0
325 }
executed 6 times by 1 test: end of block
Executed by:
  • ginstall
6
326 else if (dest_sb.st_gid != group_id
dest_sb.st_gid != group_idDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
327 return
never executed: return 1 ;
never executed: return 1 ;
0
328 1
never executed: return 1 ;
0
329 ;
never executed: return 1 ;
0
330-
331-
332 if (selinux_enabled
selinux_enabledDescription
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
&& x->preserve_security_context
x->preserve_security_contextDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-6
333 {-
334 char *file_scontext = -
335 ((void *)0)-
336 ;-
337 char *to_scontext = -
338 ((void *)0)-
339 ;-
340 -
341 _Bool -
342 scontext_match;-
343-
344 if (rpl_getfilecon (src_name, &file_scontext) == -1
rpl_getfilecon...context) == -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
345 return
never executed: return 1 ;
never executed: return 1 ;
0
346 1
never executed: return 1 ;
0
347 ;
never executed: return 1 ;
0
348-
349 if (rpl_getfilecon (dest_name, &to_scontext) == -1
rpl_getfilecon...context) == -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
350 {-
351 freecon (file_scontext);-
352 return
never executed: return 1 ;
never executed: return 1 ;
0
353 1
never executed: return 1 ;
0
354 ;
never executed: return 1 ;
0
355 }-
356-
357 scontext_match = (-
358 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (-
359 file_scontext-
360 ) && __builtin_constant_p (-
361 to_scontext-
362 ) && (__s1_len = __builtin_strlen (-
363 file_scontext-
364 ), __s2_len = __builtin_strlen (-
365 to_scontext-
366 ), (!((size_t)(const void *)((-
367 file_scontext-
368 ) + 1) - (size_t)(const void *)(-
369 file_scontext-
370 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((-
371 to_scontext-
372 ) + 1) - (size_t)(const void *)(-
373 to_scontext-
374 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (-
375 file_scontext-
376 , -
377 to_scontext-
378 ) : (__builtin_constant_p (-
379 file_scontext-
380 ) && ((size_t)(const void *)((-
381 file_scontext-
382 ) + 1) - (size_t)(const void *)(-
383 file_scontext-
384 ) == 1) && (__s1_len = __builtin_strlen (-
385 file_scontext-
386 ), __s1_len < 4) ? (__builtin_constant_p (-
387 to_scontext-
388 ) && ((size_t)(const void *)((-
389 to_scontext-
390 ) + 1) - (size_t)(const void *)(-
391 to_scontext-
392 ) == 1) ? __builtin_strcmp (-
393 file_scontext-
394 , -
395 to_scontext-
396 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (-
397 to_scontext-
398 ); int __result = (((const unsigned char *) (const char *) (-
399 file_scontext-
400 ))[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 *) (
0
401 file_scontext-
402 ))[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 *) (
0
403 file_scontext-
404 ))[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 *) ( file_scontext ))[3] - __s2[3]);
0
405 file_scontext
never executed: __result = (((const unsigned char *) (const char *) ( file_scontext ))[3] - __s2[3]);
0
406 ))[3] - __s2[3]);
never executed: __result = (((const unsigned char *) (const char *) ( file_scontext ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : (__builtin_constant_p (
0
407 to_scontext-
408 ) && ((size_t)(const void *)((-
409 to_scontext-
410 ) + 1) - (size_t)(const void *)(-
411 to_scontext-
412 ) == 1) && (__s2_len = __builtin_strlen (-
413 to_scontext-
414 ), __s2_len < 4) ? (__builtin_constant_p (-
415 file_scontext-
416 ) && ((size_t)(const void *)((-
417 file_scontext-
418 ) + 1) - (size_t)(const void *)(-
419 file_scontext-
420 ) == 1) ? __builtin_strcmp (-
421 file_scontext-
422 , -
423 to_scontext-
424 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (-
425 file_scontext-
426 ); int __result = (((const unsigned char *) (const char *) (-
427 to_scontext-
428 ))[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 *) (
0
429 to_scontext-
430 ))[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 *) (
0
431 to_scontext-
432 ))[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 *) ( to_scontext ))[3] - __s2[3]);
0
433 to_scontext
never executed: __result = (((const unsigned char *) (const char *) ( to_scontext ))[3] - __s2[3]);
0
434 ))[3] - __s2[3]);
never executed: __result = (((const unsigned char *) (const char *) ( to_scontext ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : __builtin_strcmp (
0
435 file_scontext-
436 , -
437 to_scontext-
438 )))); }) -
439 == 0);-
440-
441 freecon (file_scontext);-
442 freecon (to_scontext);-
443 if (!scontext_match
!scontext_matchDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
444 return
never executed: return 1 ;
never executed: return 1 ;
0
445 1
never executed: return 1 ;
0
446 ;
never executed: return 1 ;
0
447 }
never executed: end of block
0
448-
449-
450 src_fd = open (src_name, -
451 00 -
452 | -
453 0-
454 );-
455 if (src_fd < 0
src_fd < 0Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
)
0-6
456 return
never executed: return 1 ;
never executed: return 1 ;
0
457 1
never executed: return 1 ;
0
458 ;
never executed: return 1 ;
0
459-
460 dest_fd = open (dest_name, -
461 00 -
462 | -
463 0-
464 );-
465 if (dest_fd < 0
dest_fd < 0Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
)
0-6
466 {-
467 close (src_fd);-
468 return
never executed: return 1 ;
never executed: return 1 ;
0
469 1
never executed: return 1 ;
0
470 ;
never executed: return 1 ;
0
471 }-
472-
473 content_match = have_same_content (src_fd, dest_fd);-
474-
475 close (src_fd);-
476 close (dest_fd);-
477 return
executed 6 times by 1 test: return !content_match;
Executed by:
  • ginstall
!content_match;
executed 6 times by 1 test: return !content_match;
Executed by:
  • ginstall
6
478}-
479-
480static void-
481cp_option_init (struct cp_options *x)-
482{-
483 cp_options_default (x);-
484 x->copy_as_regular = -
485 1-
486 ;-
487 x->reflink_mode = REFLINK_NEVER;-
488 x->dereference = DEREF_ALWAYS;-
489 x->unlink_dest_before_opening = -
490 1-
491 ;-
492 x->unlink_dest_after_failed_open = -
493 0-
494 ;-
495 x->hard_link = -
496 0-
497 ;-
498 x->interactive = I_UNSPECIFIED;-
499 x->move_mode = -
500 0-
501 ;-
502 x->install_mode = -
503 1-
504 ;-
505 x->one_file_system = -
506 0-
507 ;-
508 x->preserve_ownership = -
509 0-
510 ;-
511 x->preserve_links = -
512 0-
513 ;-
514 x->preserve_mode = -
515 0-
516 ;-
517 x->preserve_timestamps = -
518 0-
519 ;-
520 x->explicit_no_preserve_mode = -
521 0-
522 ;-
523 x->reduce_diagnostics=-
524 0-
525 ;-
526 x->data_copy_required = -
527 1-
528 ;-
529 x->require_preserve = -
530 0-
531 ;-
532 x->require_preserve_xattr = -
533 0-
534 ;-
535 x->recursive = -
536 0-
537 ;-
538 x->sparse_mode = SPARSE_AUTO;-
539 x->symbolic_link = -
540 0-
541 ;-
542 x->backup_type = no_backups;-
543-
544-
545-
546-
547 x->set_mode = -
548 1-
549 ;-
550 x->mode = -
551 0400 -
552 | -
553 0200-
554 ;-
555 x->stdin_tty = -
556 0-
557 ;-
558-
559 x->open_dangling_dest_symlink = -
560 0-
561 ;-
562 x->update = -
563 0-
564 ;-
565 x->require_preserve_context = -
566 0-
567 ;-
568 x->preserve_security_context = -
569 0-
570 ;-
571 x->set_security_context = -
572 0-
573 ;-
574 x->preserve_xattr = -
575 0-
576 ;-
577 x->verbose = -
578 0-
579 ;-
580 x->dest_info = -
581 ((void *)0)-
582 ;-
583 x->src_info = -
584 ((void *)0)-
585 ;-
586}
executed 86 times by 1 test: end of block
Executed by:
  • ginstall
86
587-
588-
589-
590-
591-
592-
593static void-
594setdefaultfilecon (char const *file)-
595{-
596 struct stat st;-
597 char *scontext = -
598 ((void *)0)-
599 ;-
600 static -
601 _Bool -
602 first_call = -
603 1-
604 ;-
605-
606 if (selinux_enabled != 1
selinux_enabled != 1Description
TRUEevaluated 25 times by 1 test
Evaluated by:
  • ginstall
FALSEnever evaluated
)
0-25
607 {-
608-
609 return;
executed 25 times by 1 test: return;
Executed by:
  • ginstall
25
610 }-
611 if (lstat (file, &st) != 0
lstat (file, &st) != 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
612 return;
never executed: return;
0
613-
614 if (first_call
first_callDescription
TRUEnever evaluated
FALSEnever evaluated
&& ((((
(((file)[0]) == '/')Description
TRUEnever evaluated
FALSEnever evaluated
file)[0]) == '/')
(((file)[0]) == '/')Description
TRUEnever evaluated
FALSEnever evaluated
|| 0 != 0
0 != 0Description
TRUEnever evaluated
FALSEnever evaluated
))
0
615 {-
616-
617-
618-
619-
620-
621-
622-
623 char const *p0;-
624 char const *p = file + 1;-
625 while (((*
((*p) == '/')Description
TRUEnever evaluated
FALSEnever evaluated
p) == '/')
((*p) == '/')Description
TRUEnever evaluated
FALSEnever evaluated
)
0
626 ++
never executed: ++p;
p;
never executed: ++p;
0
627-
628-
629 p0 = p - 1;-
630-
631 if (*
*pDescription
TRUEnever evaluated
FALSEnever evaluated
p
*pDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
632 {-
633 char *prefix;-
634 do-
635 {-
636 ++p;-
637 }
never executed: end of block
0
638 while (*
*pDescription
TRUEnever evaluated
FALSEnever evaluated
p
*pDescription
TRUEnever evaluated
FALSEnever evaluated
&& !((*p) == '/')
!((*p) == '/')Description
TRUEnever evaluated
FALSEnever evaluated
);
0
639-
640 prefix = malloc (p - p0 + 2);-
641 if (prefix
prefixDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
642 {-
643 stpcpy (stpncpy (prefix, p0, p - p0), "/");-
644 matchpathcon_init_prefix (-
645 ((void *)0)-
646 , prefix);-
647 free (prefix);-
648 }
never executed: end of block
0
649 }
never executed: end of block
0
650 }
never executed: end of block
0
651 first_call = -
652 0-
653 ;-
654-
655-
656-
657-
658 if ((
(matchpathcon ...context) != 0)Description
TRUEnever evaluated
FALSEnever evaluated
matchpathcon (file, st.st_mode, &scontext) != 0)
(matchpathcon ...context) != 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
659 || (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
660 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
661 scontext
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
662 ) && __builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
663 "<<none>>"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
664 ) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
665 scontext
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
666 ), __s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
667 "<<none>>"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
668 ), (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
669 scontext
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
670 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
671 scontext
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
672 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
673 "<<none>>"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
674 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
675 "<<none>>"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
676 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
677 scontext
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
678 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
679 "<<none>>"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
680 ) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
681 scontext
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
682 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
683 scontext
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
684 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
685 scontext
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
686 ) == 1) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
687 scontext
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
688 ), __s1_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
689 "<<none>>"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
690 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
691 "<<none>>"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
692 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
693 "<<none>>"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
694 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
695 scontext
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
696 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
697 "<<none>>"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
698 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
699 "<<none>>"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
700 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
701 scontext
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
702 ))[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_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
703 scontext
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
704 ))[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_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
705 scontext
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
706 ))[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 *) ( scontext ))[3] - __s2[3]);
0
707 scontext
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( scontext ))[3] - __s2[3]);
0
708 ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
709 "<<none>>"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
710 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
711 "<<none>>"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
712 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
713 "<<none>>"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
714 ) == 1) && (__s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
715 "<<none>>"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
716 ), __s2_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
717 scontext
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
718 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
719 scontext
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
720 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
721 scontext
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
722 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
723 scontext
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
724 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
725 "<<none>>"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
726 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
727 scontext
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
728 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
729 "<<none>>"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
730 ))[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_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
731 "<<none>>"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
732 ))[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_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
733 "<<none>>"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
734 ))[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 *) ( "<<none>>" ))[3] - __s2[3]);
0
735 "<<none>>"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( "<<none>>" ))[3] - __s2[3]);
0
736 ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
737 scontext
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
738 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
739 "<<none>>"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
740 )))); })
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
741 == 0)
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
742 {-
743 if (scontext !=
scontext != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
744 ((void *)0)
scontext != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
745 )-
746 freecon (scontext);
never executed: freecon (scontext);
0
747 return;
never executed: return;
0
748 }-
749-
750 if (lsetfilecon (file, scontext) < 0
lsetfilecon (f... scontext) < 0Description
TRUEnever evaluated
FALSEnever evaluated
&&
0
751 (*
(*__errno_location ()) != 95Description
TRUEnever evaluated
FALSEnever evaluated
__errno_location ())
(*__errno_location ()) != 95Description
TRUEnever evaluated
FALSEnever evaluated
0
752 !=
(*__errno_location ()) != 95Description
TRUEnever evaluated
FALSEnever evaluated
0
753 95
(*__errno_location ()) != 95Description
TRUEnever evaluated
FALSEnever evaluated
0
754 )-
755 error (0,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "warning: %s: failed to change context to %s" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file), quote_n (1, scontext));
0
756 (*__errno_location ())
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "warning: %s: failed to change context to %s" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file), quote_n (1, scontext));
0
757 ,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "warning: %s: failed to change context to %s" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file), quote_n (1, scontext));
0
758
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "warning: %s: failed to change context to %s" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file), quote_n (1, scontext));
0
759 dcgettext (((void *)0),
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "warning: %s: failed to change context to %s" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file), quote_n (1, scontext));
0
760 "warning: %s: failed to change context to %s"
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "warning: %s: failed to change context to %s" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file), quote_n (1, scontext));
0
761 , 5)
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "warning: %s: failed to change context to %s" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file), quote_n (1, scontext));
0
762 ,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "warning: %s: failed to change context to %s" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file), quote_n (1, scontext));
0
763 quotearg_n_style_colon (0, shell_escape_quoting_style, file), quote_n (1, scontext));
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "warning: %s: failed to change context to %s" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file), quote_n (1, scontext));
0
764-
765 freecon (scontext);-
766 return;
never executed: return;
0
767}-
768static -
769 _Bool-
770-
771target_directory_operand (char const *file)-
772{-
773 char const *b = last_component (file);-
774 size_t blen = strlen (b);-
775 -
776 _Bool -
777 looks_like_a_dir = (blen == 0
blen == 0Description
TRUEnever evaluated
FALSEevaluated 26 times by 1 test
Evaluated by:
  • ginstall
|| ((
((b[blen - 1]) == '/')Description
TRUEnever evaluated
FALSEevaluated 26 times by 1 test
Evaluated by:
  • ginstall
b[blen - 1]) == '/')
((b[blen - 1]) == '/')Description
TRUEnever evaluated
FALSEevaluated 26 times by 1 test
Evaluated by:
  • ginstall
);
0-26
778 struct stat st;-
779 int err = (stat (file, &st) == 0
stat (file, &st) == 0Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
? 0 :
6-20
780 (*__errno_location ())-
781 );-
782 -
783 _Bool -
784 is_a_dir = !err
!errDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
&&
6-20
785 ((((
(((( st.st_mod... == (0040000))Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 16 times by 1 test
Evaluated by:
  • ginstall
4-16
786 st.st_mode
(((( st.st_mod... == (0040000))Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 16 times by 1 test
Evaluated by:
  • ginstall
4-16
787 )) & 0170000) == (0040000))
(((( st.st_mod... == (0040000))Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 16 times by 1 test
Evaluated by:
  • ginstall
4-16
788 ;-
789 if (err
errDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 20 times by 1 test
Evaluated by:
  • ginstall
&& err !=
err != 2Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
0-20
790 2
err != 2Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
0-6
791 )-
792 ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"failed to access %s\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , e...s_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "failed to access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
!!sizeof (struct { _Static_assert (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"failed to access %s\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , e...s_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "failed to access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
793 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"failed to access %s\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , e...s_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "failed to access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
794 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"failed to access %s\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"failed to access %s\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , e...s_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "failed to access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
795 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"failed to access %s\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , e...s_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "failed to access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
796 , err,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"failed to access %s\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , e...s_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "failed to access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
797 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"failed to access %s\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , e...s_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "failed to access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
798 "failed to access %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"failed to access %s\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , e...s_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "failed to access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
799 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"failed to access %s\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , e...s_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "failed to access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
800 , quotearg_style (shell_escape_always_quoting_style, file)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"failed to access %s\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , e...s_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "failed to access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
801 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"failed to access %s\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , e...s_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "failed to access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
802 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"failed to access %s\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , e...s_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "failed to access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
803 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"failed to access %s\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , e...s_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "failed to access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
804 , err,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"failed to access %s\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , e...s_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "failed to access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
805 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"failed to access %s\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , e...s_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "failed to access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
806 "failed to access %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"failed to access %s\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , e...s_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "failed to access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
807 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"failed to access %s\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , e...s_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "failed to access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
808 , quotearg_style (shell_escape_always_quoting_style, file)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"failed to access %s\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , e...s_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "failed to access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
809 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"failed to access %s\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , e...s_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "failed to access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
810 ) ? (void) 0 : __builtin_unreachable ()))));
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"failed to access %s\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , e...s_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "failed to access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
811 if (is_a_dir < looks_like_a_dir
is_a_dir < looks_like_a_dirDescription
TRUEnever evaluated
FALSEevaluated 26 times by 1 test
Evaluated by:
  • ginstall
)
0-26
812 ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"target %s is not a directory\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((erro...style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "target %s is not a directory" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
!!sizeof (struct { _Static_assert (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"target %s is not a directory\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((erro...style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "target %s is not a directory" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
813 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"target %s is not a directory\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((erro...style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "target %s is not a directory" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
814 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"target %s is not a directory\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"target %s is not a directory\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((erro...style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "target %s is not a directory" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
815 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"target %s is not a directory\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((erro...style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "target %s is not a directory" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
816 , err,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"target %s is not a directory\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((erro...style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "target %s is not a directory" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
817 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"target %s is not a directory\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((erro...style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "target %s is not a directory" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
818 "target %s is not a directory"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"target %s is not a directory\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((erro...style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "target %s is not a directory" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
819 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"target %s is not a directory\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((erro...style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "target %s is not a directory" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
820 , quotearg_style (shell_escape_always_quoting_style, file)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"target %s is not a directory\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((erro...style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "target %s is not a directory" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
821 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"target %s is not a directory\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((erro...style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "target %s is not a directory" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
822 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"target %s is not a directory\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((erro...style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "target %s is not a directory" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
823 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"target %s is not a directory\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((erro...style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "target %s is not a directory" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
824 , err,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"target %s is not a directory\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((erro...style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "target %s is not a directory" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
825 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"target %s is not a directory\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((erro...style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "target %s is not a directory" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
826 "target %s is not a directory"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"target %s is not a directory\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((erro...style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "target %s is not a directory" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
827 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"target %s is not a directory\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((erro...style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "target %s is not a directory" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
828 , quotearg_style (shell_escape_always_quoting_style, file)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"target %s is not a directory\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((erro...style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "target %s is not a directory" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
829 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"target %s is not a directory\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((erro...style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "target %s is not a directory" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
830 ) ? (void) 0 : __builtin_unreachable ()))))
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"target %s is not a directory\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((erro...style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "target %s is not a directory" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
831 ;
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, err, dcgettext (((void *)0), \"target %s is not a directory\", 5), quotearg_style (shell_escape_always_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((erro...style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , err, dcgettext (((void *)0), "target %s is not a directory" , 5) , quotearg_style (shell_escape_always_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
832 return
executed 26 times by 1 test: return is_a_dir;
Executed by:
  • ginstall
is_a_dir;
executed 26 times by 1 test: return is_a_dir;
Executed by:
  • ginstall
26
833}-
834-
835-
836static void-
837announce_mkdir (char const *dir, void *options)-
838{-
839 struct cp_options const *x = options;-
840 if (x->verbose
x->verboseDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 11 times by 1 test
Evaluated by:
  • ginstall
)
8-11
841 prog_fprintf (
executed 8 times by 1 test: prog_fprintf ( stdout , dcgettext (((void *)0), "creating directory %s" , 5) , quotearg_style (shell_escape_always_quoting_style, dir));
Executed by:
  • ginstall
8
842 stdout
executed 8 times by 1 test: prog_fprintf ( stdout , dcgettext (((void *)0), "creating directory %s" , 5) , quotearg_style (shell_escape_always_quoting_style, dir));
Executed by:
  • ginstall
8
843 ,
executed 8 times by 1 test: prog_fprintf ( stdout , dcgettext (((void *)0), "creating directory %s" , 5) , quotearg_style (shell_escape_always_quoting_style, dir));
Executed by:
  • ginstall
8
844 dcgettext (((void *)0),
executed 8 times by 1 test: prog_fprintf ( stdout , dcgettext (((void *)0), "creating directory %s" , 5) , quotearg_style (shell_escape_always_quoting_style, dir));
Executed by:
  • ginstall
8
845 "creating directory %s"
executed 8 times by 1 test: prog_fprintf ( stdout , dcgettext (((void *)0), "creating directory %s" , 5) , quotearg_style (shell_escape_always_quoting_style, dir));
Executed by:
  • ginstall
8
846 , 5)
executed 8 times by 1 test: prog_fprintf ( stdout , dcgettext (((void *)0), "creating directory %s" , 5) , quotearg_style (shell_escape_always_quoting_style, dir));
Executed by:
  • ginstall
8
847 , quotearg_style (shell_escape_always_quoting_style, dir));
executed 8 times by 1 test: prog_fprintf ( stdout , dcgettext (((void *)0), "creating directory %s" , 5) , quotearg_style (shell_escape_always_quoting_style, dir));
Executed by:
  • ginstall
8
848}
executed 19 times by 1 test: end of block
Executed by:
  • ginstall
19
849-
850-
851-
852-
853static int-
854make_ancestor (char const *dir, char const *component, void *options)-
855{-
856 struct cp_options const *x = options;-
857 if (x->set_security_context
x->set_security_contextDescription
TRUEnever evaluated
FALSEevaluated 28 times by 1 test
Evaluated by:
  • ginstall
&& defaultcon (component,
defaultcon (co... 0040000 ) < 0Description
TRUEnever evaluated
FALSEnever evaluated
0-28
858 0040000
defaultcon (co... 0040000 ) < 0Description
TRUEnever evaluated
FALSEnever evaluated
0
859 ) < 0
defaultcon (co... 0040000 ) < 0Description
TRUEnever evaluated
FALSEnever evaluated
0
860 && ! ignorable_ctx_err (
! ignorable_ct...location ()) )Description
TRUEnever evaluated
FALSEnever evaluated
0
861 (*__errno_location ())
! ignorable_ct...location ()) )Description
TRUEnever evaluated
FALSEnever evaluated
0
862 )
! ignorable_ct...location ()) )Description
TRUEnever evaluated
FALSEnever evaluated
)
0
863 error (0,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to set default creation context for %s" , 5) , quotearg_style (shell_escape_always_quoting_style, dir));
0
864 (*__errno_location ())
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to set default creation context for %s" , 5) , quotearg_style (shell_escape_always_quoting_style, dir));
0
865 ,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to set default creation context for %s" , 5) , quotearg_style (shell_escape_always_quoting_style, dir));
0
866 dcgettext (((void *)0),
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to set default creation context for %s" , 5) , quotearg_style (shell_escape_always_quoting_style, dir));
0
867 "failed to set default creation context for %s"
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to set default creation context for %s" , 5) , quotearg_style (shell_escape_always_quoting_style, dir));
0
868 , 5)
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to set default creation context for %s" , 5) , quotearg_style (shell_escape_always_quoting_style, dir));
0
869 ,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to set default creation context for %s" , 5) , quotearg_style (shell_escape_always_quoting_style, dir));
0
870 quotearg_style (shell_escape_always_quoting_style, dir));
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to set default creation context for %s" , 5) , quotearg_style (shell_escape_always_quoting_style, dir));
0
871-
872 int r = mkdir (component, (-
873 (0400|0200|0100) -
874 | -
875 (0400 >> 3) -
876 | -
877 (0100 >> 3) -
878 | -
879 ((0400 >> 3) >> 3) -
880 | -
881 ((0100 >> 3) >> 3)-
882 ));-
883 if (r == 0
r == 0Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 14 times by 1 test
Evaluated by:
  • ginstall
)
14
884 announce_mkdir (dir, options);
executed 14 times by 1 test: announce_mkdir (dir, options);
Executed by:
  • ginstall
14
885 return
executed 28 times by 1 test: return r;
Executed by:
  • ginstall
r;
executed 28 times by 1 test: return r;
Executed by:
  • ginstall
28
886}-
887-
888-
889static int-
890process_dir (char *dir, struct savewd *wd, void *options)-
891{-
892 struct cp_options const *x = options;-
893-
894 int ret = (make_dir_parents (dir, wd, make_ancestor, options,
make_dir_paren... group_id, 0 )Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
1-12
895 dir_mode, announce_mkdir,
make_dir_paren... group_id, 0 )Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
1-12
896 dir_mode_bits, owner_id, group_id,
make_dir_paren... group_id, 0 )Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
1-12
897 0
make_dir_paren... group_id, 0 )Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
1-12
898 )
make_dir_paren... group_id, 0 )Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
1-12
899 ? -
900 0-
901 -
902 : -
903 1-
904 );-
905-
906-
907-
908-
909-
910-
911 if (ret ==
ret == 0Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
1-12
912 0
ret == 0Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
1-12
913 && x->set_security_context
x->set_security_contextDescription
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • ginstall
)
0-12
914 {-
915 if (! restorecon (last_component (dir),
! restorecon (...(dir), 0 , 0 )Description
TRUEnever evaluated
FALSEnever evaluated
0
916 0
! restorecon (...(dir), 0 , 0 )Description
TRUEnever evaluated
FALSEnever evaluated
0
917 ,
! restorecon (...(dir), 0 , 0 )Description
TRUEnever evaluated
FALSEnever evaluated
0
918 0
! restorecon (...(dir), 0 , 0 )Description
TRUEnever evaluated
FALSEnever evaluated
0
919 )
! restorecon (...(dir), 0 , 0 )Description
TRUEnever evaluated
FALSEnever evaluated
0
920 && ! ignorable_ctx_err (
! ignorable_ct...location ()) )Description
TRUEnever evaluated
FALSEnever evaluated
0
921 (*__errno_location ())
! ignorable_ct...location ()) )Description
TRUEnever evaluated
FALSEnever evaluated
0
922 )
! ignorable_ct...location ()) )Description
TRUEnever evaluated
FALSEnever evaluated
)
0
923 error (0,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to restore context for %s" , 5) , quotearg_style (shell_escape_always_quoting_style, dir));
0
924 (*__errno_location ())
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to restore context for %s" , 5) , quotearg_style (shell_escape_always_quoting_style, dir));
0
925 ,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to restore context for %s" , 5) , quotearg_style (shell_escape_always_quoting_style, dir));
0
926 dcgettext (((void *)0),
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to restore context for %s" , 5) , quotearg_style (shell_escape_always_quoting_style, dir));
0
927 "failed to restore context for %s"
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to restore context for %s" , 5) , quotearg_style (shell_escape_always_quoting_style, dir));
0
928 , 5)
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to restore context for %s" , 5) , quotearg_style (shell_escape_always_quoting_style, dir));
0
929 ,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to restore context for %s" , 5) , quotearg_style (shell_escape_always_quoting_style, dir));
0
930 quotearg_style (shell_escape_always_quoting_style, dir));
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to restore context for %s" , 5) , quotearg_style (shell_escape_always_quoting_style, dir));
0
931 }
never executed: end of block
0
932-
933 return
executed 13 times by 1 test: return ret;
Executed by:
  • ginstall
ret;
executed 13 times by 1 test: return ret;
Executed by:
  • ginstall
13
934}-
935-
936-
937-
938-
939static -
940 _Bool-
941-
942copy_file (const char *from, const char *to, const struct cp_options *x)-
943{-
944 -
945 _Bool -
946 copy_into_self;-
947-
948 if (copy_only_if_needed
copy_only_if_neededDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 16 times by 1 test
Evaluated by:
  • ginstall
&& !need_copy (from, to, x)
!need_copy (from, to, x)Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 7 times by 1 test
Evaluated by:
  • ginstall
)
5-16
949 return
executed 5 times by 1 test: return 1 ;
Executed by:
  • ginstall
executed 5 times by 1 test: return 1 ;
Executed by:
  • ginstall
5
950 1
executed 5 times by 1 test: return 1 ;
Executed by:
  • ginstall
5
951 ;
executed 5 times by 1 test: return 1 ;
Executed by:
  • ginstall
5
952-
953-
954-
955-
956-
957-
958-
959 return
executed 23 times by 1 test: return copy (from, to, 0 , x, &copy_into_self, ((void *)0) );
Executed by:
  • ginstall
copy (from, to,
executed 23 times by 1 test: return copy (from, to, 0 , x, &copy_into_self, ((void *)0) );
Executed by:
  • ginstall
23
960 0
executed 23 times by 1 test: return copy (from, to, 0 , x, &copy_into_self, ((void *)0) );
Executed by:
  • ginstall
23
961 , x, &copy_into_self,
executed 23 times by 1 test: return copy (from, to, 0 , x, &copy_into_self, ((void *)0) );
Executed by:
  • ginstall
23
962 ((void *)0)
executed 23 times by 1 test: return copy (from, to, 0 , x, &copy_into_self, ((void *)0) );
Executed by:
  • ginstall
23
963 );
executed 23 times by 1 test: return copy (from, to, 0 , x, &copy_into_self, ((void *)0) );
Executed by:
  • ginstall
23
964}-
965-
966-
967-
968-
969static -
970 _Bool-
971-
972change_attributes (char const *name)-
973{-
974 -
975 _Bool -
976 ok = -
977 0-
978 ;-
979 if (! (owner_id == (uid_t) -1
owner_id == (uid_t) -1Description
TRUEevaluated 25 times by 1 test
Evaluated by:
  • ginstall
FALSEnever evaluated
&& group_id == (gid_t) -1
group_id == (gid_t) -1Description
TRUEevaluated 25 times by 1 test
Evaluated by:
  • ginstall
FALSEnever evaluated
)
0-25
980 && lchown (name, owner_id, group_id) != 0
lchown (name, ...group_id) != 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
981 error (0,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "cannot change ownership of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, name));
0
982 (*__errno_location ())
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "cannot change ownership of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, name));
0
983 ,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "cannot change ownership of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, name));
0
984 dcgettext (((void *)0),
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "cannot change ownership of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, name));
0
985 "cannot change ownership of %s"
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "cannot change ownership of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, name));
0
986 , 5)
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "cannot change ownership of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, name));
0
987 , quotearg_style (shell_escape_always_quoting_style, name));
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "cannot change ownership of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, name));
0
988 else if (chmod (name, mode) != 0
chmod (name, mode) != 0Description
TRUEnever evaluated
FALSEevaluated 25 times by 1 test
Evaluated by:
  • ginstall
)
0-25
989 error (0,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "cannot change permissions of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, name));
0
990 (*__errno_location ())
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "cannot change permissions of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, name));
0
991 ,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "cannot change permissions of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, name));
0
992 dcgettext (((void *)0),
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "cannot change permissions of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, name));
0
993 "cannot change permissions of %s"
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "cannot change permissions of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, name));
0
994 , 5)
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "cannot change permissions of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, name));
0
995 , quotearg_style (shell_escape_always_quoting_style, name));
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "cannot change permissions of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, name));
0
996 else-
997 ok =
executed 25 times by 1 test: ok = 1 ;
Executed by:
  • ginstall
25
998 1
executed 25 times by 1 test: ok = 1 ;
Executed by:
  • ginstall
25
999 ;
executed 25 times by 1 test: ok = 1 ;
Executed by:
  • ginstall
25
1000-
1001 if (use_default_selinux_context
use_default_selinux_contextDescription
TRUEevaluated 25 times by 1 test
Evaluated by:
  • ginstall
FALSEnever evaluated
)
0-25
1002 setdefaultfilecon (name);
executed 25 times by 1 test: setdefaultfilecon (name);
Executed by:
  • ginstall
25
1003-
1004 return
executed 25 times by 1 test: return ok;
Executed by:
  • ginstall
ok;
executed 25 times by 1 test: return ok;
Executed by:
  • ginstall
25
1005}-
1006-
1007-
1008-
1009-
1010static -
1011 _Bool-
1012-
1013change_timestamps (struct stat const *src_sb, char const *dest)-
1014{-
1015 struct timespec timespec[2];-
1016 timespec[0] = get_stat_atime (src_sb);-
1017 timespec[1] = get_stat_mtime (src_sb);-
1018-
1019 if (utimens (dest, timespec)
utimens (dest, timespec)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1020 {-
1021 error (0, -
1022 (*__errno_location ())-
1023 , -
1024 dcgettext (((void *)0), -
1025 "cannot set timestamps for %s"-
1026 , 5)-
1027 , quotearg_style (shell_escape_always_quoting_style, dest));-
1028 return
never executed: return 0 ;
never executed: return 0 ;
0
1029 0
never executed: return 0 ;
0
1030 ;
never executed: return 0 ;
0
1031 }-
1032 return
never executed: return 1 ;
never executed: return 1 ;
0
1033 1
never executed: return 1 ;
0
1034 ;
never executed: return 1 ;
0
1035}-
1036-
1037-
1038-
1039-
1040-
1041-
1042-
1043static -
1044 _Bool-
1045-
1046strip (char const *name)-
1047{-
1048 int status;-
1049 -
1050 _Bool -
1051 ok = -
1052 0-
1053 ;-
1054 pid_t pid = fork ();-
1055-
1056 switch (pid)-
1057 {-
1058 case
never executed: case -1:
-1:
never executed: case -1:
0
1059 error (0, -
1060 (*__errno_location ())-
1061 , -
1062 dcgettext (((void *)0), -
1063 "fork system call failed"-
1064 , 5)-
1065 );-
1066 break;
never executed: break;
0
1067 case
executed 1 time by 1 test: case 0:
Executed by:
  • ginstall
0:
executed 1 time by 1 test: case 0:
Executed by:
  • ginstall
1
1068 execlp (strip_program, strip_program, name, -
1069 ((void *)0)-
1070 );-
1071 ((!!sizeof (struct { _Static_assert (-
1072 1-
1073 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot run %s\", 5), quotearg_style (shell_escape_always_quoting_style, strip_program)), assume (false))" ")"); int _gl_dummy; })) ? ((error (-
1074 1-
1075 , -
1076 (*__errno_location ())-
1077 , -
1078 dcgettext (((void *)0), -
1079 "cannot run %s"-
1080 , 5)-
1081 , quotearg_style (shell_escape_always_quoting_style, strip_program)), ((-
1082 0-
1083 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (-
1084 1-
1085 , -
1086 (*__errno_location ())-
1087 , -
1088 dcgettext (((void *)0), -
1089 "cannot run %s"-
1090 , 5)-
1091 , quotearg_style (shell_escape_always_quoting_style, strip_program)), ((-
1092 0-
1093 ) ? (void) 0 : __builtin_unreachable ()))));-
1094 default
executed 4 times by 1 test: default:
Executed by:
  • ginstall
code before this statement never executed: default:
executed 4 times by 1 test: default:
Executed by:
  • ginstall
:
code before this statement never executed: default:
executed 4 times by 1 test: default:
Executed by:
  • ginstall
0-4
1095 if (waitpid (pid, &status, 0) < 0
waitpid (pid, &status, 0) < 0Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • ginstall
)
0-4
1096 error (0,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "waiting for strip" , 5) );
0
1097 (*__errno_location ())
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "waiting for strip" , 5) );
0
1098 ,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "waiting for strip" , 5) );
0
1099 dcgettext (((void *)0),
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "waiting for strip" , 5) );
0
1100 "waiting for strip"
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "waiting for strip" , 5) );
0
1101 , 5)
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "waiting for strip" , 5) );
0
1102 );
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "waiting for strip" , 5) );
0
1103 else if (!
! ((( status ) & 0x7f) == 0)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • ginstall
0-4
1104 (((
! ((( status ) & 0x7f) == 0)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • ginstall
0-4
1105 status
! ((( status ) & 0x7f) == 0)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • ginstall
0-4
1106 ) & 0x7f) == 0)
! ((( status ) & 0x7f) == 0)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • ginstall
0-4
1107 || -
1108 (((
((( status ) & 0xff00) >> 8)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 3 times by 1 test
Evaluated by:
  • ginstall
1-3
1109 status
((( status ) & 0xff00) >> 8)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 3 times by 1 test
Evaluated by:
  • ginstall
1-3
1110 ) & 0xff00) >> 8)
((( status ) & 0xff00) >> 8)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 3 times by 1 test
Evaluated by:
  • ginstall
1-3
1111 )-
1112 error (0, 0,
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "strip process terminated abnormally" , 5) );
Executed by:
  • ginstall
1
1113 dcgettext (((void *)0),
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "strip process terminated abnormally" , 5) );
Executed by:
  • ginstall
1
1114 "strip process terminated abnormally"
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "strip process terminated abnormally" , 5) );
Executed by:
  • ginstall
1
1115 , 5)
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "strip process terminated abnormally" , 5) );
Executed by:
  • ginstall
1
1116 );
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "strip process terminated abnormally" , 5) );
Executed by:
  • ginstall
1
1117 else-
1118 ok =
executed 3 times by 1 test: ok = 1 ;
Executed by:
  • ginstall
3
1119 1
executed 3 times by 1 test: ok = 1 ;
Executed by:
  • ginstall
3
1120 ;
executed 3 times by 1 test: ok = 1 ;
Executed by:
  • ginstall
3
1121 break;
executed 4 times by 1 test: break;
Executed by:
  • ginstall
4
1122 }-
1123 return
executed 4 times by 1 test: return ok;
Executed by:
  • ginstall
ok;
executed 4 times by 1 test: return ok;
Executed by:
  • ginstall
4
1124}-
1125-
1126-
1127-
1128static void-
1129get_ids (void)-
1130{-
1131 struct passwd *pw;-
1132 struct group *gr;-
1133-
1134 if (owner_name
owner_nameDescription
TRUEnever evaluated
FALSEevaluated 34 times by 1 test
Evaluated by:
  • ginstall
)
0-34
1135 {-
1136 pw = getpwnam (owner_name);-
1137 if (pw ==
pw == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1138 ((void *)0)
pw == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1139 )-
1140 {-
1141 unsigned long int tmp;-
1142 if (xstrtoul (owner_name,
xstrtoul (owne... != LONGINT_OKDescription
TRUEnever evaluated
FALSEnever evaluated
0
1143 ((void *)0)
xstrtoul (owne... != LONGINT_OKDescription
TRUEnever evaluated
FALSEnever evaluated
0
1144 , 0, &tmp,
xstrtoul (owne... != LONGINT_OKDescription
TRUEnever evaluated
FALSEnever evaluated
0
1145 ((void *)0)
xstrtoul (owne... != LONGINT_OKDescription
TRUEnever evaluated
FALSEnever evaluated
0
1146 ) != LONGINT_OK
xstrtoul (owne... != LONGINT_OKDescription
TRUEnever evaluated
FALSEnever evaluated
0
1147 || ((
((uid_t) (! (!...2 + 1))) < tmpDescription
TRUEnever evaluated
FALSEnever evaluated
uid_t) (! (! ((uid_t) 0 < (uid_t) -1)) ? (uid_t) -1 : ((((uid_t) 1 << ((sizeof (uid_t) * 8) - 2)) - 1) * 2 + 1))) < tmp
((uid_t) (! (!...2 + 1))) < tmpDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1148 ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid user %s\", 5), quote (owner_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
!!sizeof (struct { _Static_assert (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid user %s\", 5), quote (owner_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1149 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid user %s\", 5), quote (owner_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1150 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid user %s\", 5), quote (owner_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid user %s\", 5), quote (owner_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1151 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid user %s\", 5), quote (owner_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1152 , 0,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid user %s\", 5), quote (owner_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1153 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid user %s\", 5), quote (owner_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1154 "invalid user %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid user %s\", 5), quote (owner_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1155 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid user %s\", 5), quote (owner_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1156 , quote (owner_name)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid user %s\", 5), quote (owner_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1157 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid user %s\", 5), quote (owner_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1158 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid user %s\", 5), quote (owner_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1159 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid user %s\", 5), quote (owner_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1160 , 0,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid user %s\", 5), quote (owner_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1161 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid user %s\", 5), quote (owner_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1162 "invalid user %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid user %s\", 5), quote (owner_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1163 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid user %s\", 5), quote (owner_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1164 , quote (owner_name)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid user %s\", 5), quote (owner_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1165 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid user %s\", 5), quote (owner_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1166 ) ? (void) 0 : __builtin_unreachable ()))))
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid user %s\", 5), quote (owner_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1167 ;
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid user %s\", 5), quote (owner_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid user %s" , 5) , quote (owner_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1168 owner_id = tmp;-
1169 }
never executed: end of block
0
1170 else-
1171 owner_id = pw->pw_uid;
never executed: owner_id = pw->pw_uid;
0
1172 endpwent ();-
1173 }
never executed: end of block
0
1174 else-
1175 owner_id = (uid_t) -1;
executed 34 times by 1 test: owner_id = (uid_t) -1;
Executed by:
  • ginstall
34
1176-
1177 if (group_name
group_nameDescription
TRUEnever evaluated
FALSEevaluated 34 times by 1 test
Evaluated by:
  • ginstall
)
0-34
1178 {-
1179 gr = getgrnam (group_name);-
1180 if (gr ==
gr == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1181 ((void *)0)
gr == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1182 )-
1183 {-
1184 unsigned long int tmp;-
1185 if (xstrtoul (group_name,
xstrtoul (grou... != LONGINT_OKDescription
TRUEnever evaluated
FALSEnever evaluated
0
1186 ((void *)0)
xstrtoul (grou... != LONGINT_OKDescription
TRUEnever evaluated
FALSEnever evaluated
0
1187 , 0, &tmp,
xstrtoul (grou... != LONGINT_OKDescription
TRUEnever evaluated
FALSEnever evaluated
0
1188 ((void *)0)
xstrtoul (grou... != LONGINT_OKDescription
TRUEnever evaluated
FALSEnever evaluated
0
1189 ) != LONGINT_OK
xstrtoul (grou... != LONGINT_OKDescription
TRUEnever evaluated
FALSEnever evaluated
0
1190 || ((
((gid_t) (! (!...2 + 1))) < tmpDescription
TRUEnever evaluated
FALSEnever evaluated
gid_t) (! (! ((gid_t) 0 < (gid_t) -1)) ? (gid_t) -1 : ((((gid_t) 1 << ((sizeof (gid_t) * 8) - 2)) - 1) * 2 + 1))) < tmp
((gid_t) (! (!...2 + 1))) < tmpDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1191 ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid group %s\", 5), quote (group_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
!!sizeof (struct { _Static_assert (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid group %s\", 5), quote (group_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1192 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid group %s\", 5), quote (group_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1193 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid group %s\", 5), quote (group_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid group %s\", 5), quote (group_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1194 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid group %s\", 5), quote (group_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1195 , 0,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid group %s\", 5), quote (group_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1196 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid group %s\", 5), quote (group_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1197 "invalid group %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid group %s\", 5), quote (group_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1198 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid group %s\", 5), quote (group_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1199 , quote (group_name)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid group %s\", 5), quote (group_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1200 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid group %s\", 5), quote (group_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1201 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid group %s\", 5), quote (group_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1202 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid group %s\", 5), quote (group_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1203 , 0,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid group %s\", 5), quote (group_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1204 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid group %s\", 5), quote (group_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1205 "invalid group %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid group %s\", 5), quote (group_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1206 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid group %s\", 5), quote (group_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1207 , quote (group_name)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid group %s\", 5), quote (group_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1208 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid group %s\", 5), quote (group_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1209 ) ? (void) 0 : __builtin_unreachable ()))))
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid group %s\", 5), quote (group_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1210 ;
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid group %s\", 5), quote (group_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid group %s" , 5) , quote (group_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1211 group_id = tmp;-
1212 }
never executed: end of block
0
1213 else-
1214 group_id = gr->gr_gid;
never executed: group_id = gr->gr_gid;
0
1215 endgrent ();-
1216 }
never executed: end of block
0
1217 else-
1218 group_id = (gid_t) -1;
executed 34 times by 1 test: group_id = (gid_t) -1;
Executed by:
  • ginstall
34
1219}-
1220-
1221void-
1222usage (int status)-
1223{-
1224 if (status !=
status != 0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 33 times by 1 test
Evaluated by:
  • ginstall
5-33
1225 0
status != 0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 33 times by 1 test
Evaluated by:
  • ginstall
5-33
1226 )-
1227 do { fprintf (-
1228 stderr-
1229 , -
1230 dcgettext (((void *)0), -
1231 "Try '%s --help' for more information.\n"-
1232 , 5)-
1233 , program_name); }
executed 5 times by 1 test: end of block
Executed by:
  • ginstall
while (0);
5
1234 else-
1235 {-
1236 printf (-
1237 dcgettext (((void *)0), -
1238 "Usage: %s [OPTION]... [-T] SOURCE DEST\n or: %s [OPTION]... SOURCE... DIRECTORY\n or: %s [OPTION]... -t DIRECTORY SOURCE...\n or: %s [OPTION]... -d DIRECTORY...\n"-
1239 , 5)-
1240-
1241-
1242-
1243-
1244 -
1245 ,-
1246 program_name, program_name, program_name, program_name);-
1247 fputs_unlocked (-
1248 dcgettext (((void *)0), -
1249 "\nThis install program copies files (often just compiled) into destination\nlocations you choose. If you want to download and install a ready-to-use\npackage on a GNU/Linux system, you should instead be using a package manager\nlike yum(1) or apt-get(1).\n\nIn the first three forms, copy SOURCE to DEST or multiple SOURCE(s) to\nthe existing DIRECTORY, while setting permission modes and owner/group.\nIn the 4th form, create all components of the given DIRECTORY(ies).\n"-
1250 , 5)-
1251 ,-
1252 stdout-
1253 )-
1254 ;-
1255-
1256 emit_mandatory_arg_note ();-
1257-
1258 fputs_unlocked (-
1259 dcgettext (((void *)0), -
1260 " --backup[=CONTROL] make a backup of each existing destination file\n -b like --backup but does not accept an argument\n -c (ignored)\n -C, --compare compare each pair of source and destination files, and\n in some cases, do not modify the destination at all\n -d, --directory treat all arguments as directory names; create all\n components of the specified directories\n"-
1261 , 5)-
1262 ,-
1263 stdout-
1264 )-
1265-
1266-
1267-
1268-
1269-
1270-
1271-
1272 ;-
1273 fputs_unlocked (-
1274 dcgettext (((void *)0), -
1275 " -D create all leading components of DEST except the last,\n or all components of --target-directory,\n then copy SOURCE to DEST\n -g, --group=GROUP set group ownership, instead of process' current group\n -m, --mode=MODE set permission mode (as in chmod), instead of rwxr-xr-x\n -o, --owner=OWNER set ownership (super-user only)\n"-
1276 , 5)-
1277 ,-
1278 stdout-
1279 )-
1280-
1281-
1282-
1283-
1284-
1285-
1286 ;-
1287 fputs_unlocked (-
1288 dcgettext (((void *)0), -
1289 " -p, --preserve-timestamps apply access/modification times of SOURCE files\n to corresponding destination files\n -s, --strip strip symbol tables\n --strip-program=PROGRAM program used to strip binaries\n -S, --suffix=SUFFIX override the usual backup suffix\n -t, --target-directory=DIRECTORY copy all SOURCE arguments into DIRECTORY\n -T, --no-target-directory treat DEST as a normal file\n -v, --verbose print the name of each directory as it is created\n"-
1290 , 5)-
1291 ,-
1292 stdout-
1293 )-
1294 ;-
1295 fputs_unlocked (-
1296 dcgettext (((void *)0), -
1297 " --preserve-context preserve SELinux security context\n -Z set SELinux security context of destination\n file and each created directory to default type\n --context[=CTX] like -Z, or if CTX is specified then set the\n SELinux or SMACK security context to CTX\n"-
1298 , 5)-
1299 ,-
1300 stdout-
1301 )-
1302-
1303-
1304-
1305-
1306-
1307 ;-
1308-
1309 fputs_unlocked (-
1310 dcgettext (((void *)0), -
1311 " --help display this help and exit\n"-
1312 , 5)-
1313 ,-
1314 stdout-
1315 );-
1316 fputs_unlocked (-
1317 dcgettext (((void *)0), -
1318 " --version output version information and exit\n"-
1319 , 5)-
1320 ,-
1321 stdout-
1322 );-
1323 emit_backup_suffix_note ();-
1324 emit_ancillary_info ("install");-
1325 }
executed 33 times by 1 test: end of block
Executed by:
  • ginstall
33
1326 exit (status);
executed 38 times by 1 test: exit (status);
Executed by:
  • ginstall
38
1327}-
1328-
1329-
1330-
1331-
1332-
1333static -
1334 _Bool-
1335-
1336install_file_in_file (const char *from, const char *to,-
1337 const struct cp_options *x)-
1338{-
1339 struct stat from_sb;-
1340 if (x->preserve_timestamps
x->preserve_timestampsDescription
TRUEnever evaluated
FALSEevaluated 28 times by 1 test
Evaluated by:
  • ginstall
&& stat (from, &from_sb) != 0
stat (from, &from_sb) != 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0-28
1341 {-
1342 error (0, -
1343 (*__errno_location ())-
1344 , -
1345 dcgettext (((void *)0), -
1346 "cannot stat %s"-
1347 , 5)-
1348 , quotearg_style (shell_escape_always_quoting_style, from));-
1349 return
never executed: return 0 ;
never executed: return 0 ;
0
1350 0
never executed: return 0 ;
0
1351 ;
never executed: return 0 ;
0
1352 }-
1353 if (! copy_file (from, to, x)
! copy_file (from, to, x)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 27 times by 1 test
Evaluated by:
  • ginstall
)
1-27
1354 return
executed 1 time by 1 test: return 0 ;
Executed by:
  • ginstall
executed 1 time by 1 test: return 0 ;
Executed by:
  • ginstall
1
1355 0
executed 1 time by 1 test: return 0 ;
Executed by:
  • ginstall
1
1356 ;
executed 1 time by 1 test: return 0 ;
Executed by:
  • ginstall
1
1357 if (strip_files
strip_filesDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 22 times by 1 test
Evaluated by:
  • ginstall
)
5-22
1358 if (! strip (to)
! strip (to)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 3 times by 1 test
Evaluated by:
  • ginstall
)
1-3
1359 {-
1360 if (unlink (to) != 0
unlink (to) != 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
)
0-1
1361 ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
!!sizeof (struct { _Static_assert (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1362 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1363 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1364 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1365 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1366 (*__errno_location ())
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1367 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1368 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1369 "cannot unlink %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1370 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1371 , quotearg_style (shell_escape_always_quoting_style, to)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1372 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1373 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1374 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1375 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1376 (*__errno_location ())
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1377 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1378 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1379 "cannot unlink %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1380 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1381 , quotearg_style (shell_escape_always_quoting_style, to)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1382 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1383 ) ? (void) 0 : __builtin_unreachable ()))));
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, to)), assume (false))" ")"); int _gl_dummy; })) ? (...le, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot unlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1384 return
executed 1 time by 1 test: return 0 ;
Executed by:
  • ginstall
executed 1 time by 1 test: return 0 ;
Executed by:
  • ginstall
1
1385 0
executed 1 time by 1 test: return 0 ;
Executed by:
  • ginstall
1
1386 ;
executed 1 time by 1 test: return 0 ;
Executed by:
  • ginstall
1
1387 }-
1388 if (x->preserve_timestamps
x->preserve_timestampsDescription
TRUEnever evaluated
FALSEevaluated 25 times by 1 test
Evaluated by:
  • ginstall
&& (strip_files
strip_filesDescription
TRUEnever evaluated
FALSEnever evaluated
|| !
! (((( from_sb... == (0100000))Description
TRUEnever evaluated
FALSEnever evaluated
0-25
1389 ((((
! (((( from_sb... == (0100000))Description
TRUEnever evaluated
FALSEnever evaluated
0
1390 from_sb.st_mode
! (((( from_sb... == (0100000))Description
TRUEnever evaluated
FALSEnever evaluated
0
1391 )) & 0170000) == (0100000))
! (((( from_sb... == (0100000))Description
TRUEnever evaluated
FALSEnever evaluated
0
1392 )-
1393 && ! change_timestamps (&from_sb, to)
! change_times...(&from_sb, to)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1394 return
never executed: return 0 ;
never executed: return 0 ;
0
1395 0
never executed: return 0 ;
0
1396 ;
never executed: return 0 ;
0
1397 return
executed 25 times by 1 test: return change_attributes (to);
Executed by:
  • ginstall
change_attributes (to);
executed 25 times by 1 test: return change_attributes (to);
Executed by:
  • ginstall
25
1398}-
1399-
1400-
1401-
1402-
1403-
1404static -
1405 _Bool-
1406-
1407mkancesdirs_safe_wd (char const *from, char *to, struct cp_options *x,-
1408 -
1409 _Bool -
1410 save_always)-
1411{-
1412 -
1413 _Bool -
1414 save_working_directory =-
1415 save_always
save_alwaysDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 2 times by 1 test
Evaluated by:
  • ginstall
2-3
1416 || ! (((((
(((from)[0]) == '/')Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • ginstall
from)[0]) == '/')
(((from)[0]) == '/')Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • ginstall
|| 0 != 0
0 != 0Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • ginstall
) && ((((
(((to)[0]) == '/')Description
TRUEnever evaluated
FALSEnever evaluated
to)[0]) == '/')
(((to)[0]) == '/')Description
TRUEnever evaluated
FALSEnever evaluated
|| 0 != 0
0 != 0Description
TRUEnever evaluated
FALSEnever evaluated
));
0-2
1417 int status = -
1418 0-
1419 ;-
1420-
1421 struct savewd wd;-
1422 savewd_init (&wd);-
1423 if (! save_working_directory
! save_working_directoryDescription
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • ginstall
)
0-5
1424 savewd_finish (&wd);
never executed: savewd_finish (&wd);
0
1425-
1426 if (mkancesdirs (to, &wd, make_ancestor, x) == -1
mkancesdirs (t...stor, x) == -1Description
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • ginstall
)
0-5
1427 {-
1428 error (0, -
1429 (*__errno_location ())-
1430 , -
1431 dcgettext (((void *)0), -
1432 "cannot create directory %s"-
1433 , 5)-
1434 , quotearg_style (shell_escape_always_quoting_style, to));-
1435 status = -
1436 1-
1437 ;-
1438 }
never executed: end of block
0
1439-
1440 if (save_working_directory
save_working_directoryDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • ginstall
FALSEnever evaluated
)
0-5
1441 {-
1442 int restore_result = savewd_restore (&wd, status);-
1443 int restore_errno = -
1444 (*__errno_location ())-
1445 ;-
1446 savewd_finish (&wd);-
1447 if (-
1448 0
0 < restore_resultDescription
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • ginstall
0-5
1449 < restore_result
0 < restore_resultDescription
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • ginstall
)
0-5
1450 return
never executed: return 0 ;
never executed: return 0 ;
0
1451 0
never executed: return 0 ;
0
1452 ;
never executed: return 0 ;
0
1453 if (restore_result < 0
restore_result < 0Description
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • ginstall
&& status ==
status == 0Description
TRUEnever evaluated
FALSEnever evaluated
0-5
1454 0
status == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
1455 )-
1456 {-
1457 error (0, restore_errno, -
1458 dcgettext (((void *)0), -
1459 "cannot create directory %s"-
1460 , 5)-
1461 ,-
1462 quotearg_style (shell_escape_always_quoting_style, to));-
1463 return
never executed: return 0 ;
never executed: return 0 ;
0
1464 0
never executed: return 0 ;
0
1465 ;
never executed: return 0 ;
0
1466 }-
1467 }
executed 5 times by 1 test: end of block
Executed by:
  • ginstall
5
1468 return
executed 5 times by 1 test: return status == 0 ;
Executed by:
  • ginstall
status ==
executed 5 times by 1 test: return status == 0 ;
Executed by:
  • ginstall
5
1469 0
executed 5 times by 1 test: return status == 0 ;
Executed by:
  • ginstall
5
1470 ;
executed 5 times by 1 test: return status == 0 ;
Executed by:
  • ginstall
5
1471}-
1472-
1473-
1474-
1475-
1476static -
1477 _Bool-
1478-
1479install_file_in_file_parents (char const *from, char *to,-
1480 const struct cp_options *x)-
1481{-
1482 return
executed 2 times by 1 test: return (mkancesdirs_safe_wd (from, to, (struct cp_options *)x, 0 ) && install_file_in_file (from, to, x));
Executed by:
  • ginstall
(mkancesdirs_safe_wd (from, to, (struct cp_options *)x,
executed 2 times by 1 test: return (mkancesdirs_safe_wd (from, to, (struct cp_options *)x, 0 ) && install_file_in_file (from, to, x));
Executed by:
  • ginstall
2
1483 0
executed 2 times by 1 test: return (mkancesdirs_safe_wd (from, to, (struct cp_options *)x, 0 ) && install_file_in_file (from, to, x));
Executed by:
  • ginstall
2
1484 )
executed 2 times by 1 test: return (mkancesdirs_safe_wd (from, to, (struct cp_options *)x, 0 ) && install_file_in_file (from, to, x));
Executed by:
  • ginstall
2
1485 && install_file_in_file (from, to, x));
executed 2 times by 1 test: return (mkancesdirs_safe_wd (from, to, (struct cp_options *)x, 0 ) && install_file_in_file (from, to, x));
Executed by:
  • ginstall
2
1486}-
1487-
1488-
1489-
1490-
1491-
1492static -
1493 _Bool-
1494-
1495install_file_in_dir (const char *from, const char *to_dir,-
1496 const struct cp_options *x, -
1497 _Bool -
1498 mkdir_and_install)-
1499{-
1500 const char *from_base = last_component (from);-
1501 char *to = file_name_concat (to_dir, from_base, -
1502 ((void *)0)-
1503 );-
1504 -
1505 _Bool -
1506 ret = -
1507 1-
1508 ;-
1509-
1510 if (mkdir_and_install
mkdir_and_installDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 5 times by 1 test
Evaluated by:
  • ginstall
)
3-5
1511 ret = mkancesdirs_safe_wd (from, to, (struct cp_options *)x,
executed 3 times by 1 test: ret = mkancesdirs_safe_wd (from, to, (struct cp_options *)x, 1 );
Executed by:
  • ginstall
3
1512 1
executed 3 times by 1 test: ret = mkancesdirs_safe_wd (from, to, (struct cp_options *)x, 1 );
Executed by:
  • ginstall
3
1513 );
executed 3 times by 1 test: ret = mkancesdirs_safe_wd (from, to, (struct cp_options *)x, 1 );
Executed by:
  • ginstall
3
1514-
1515 ret = ret
retDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • ginstall
FALSEnever evaluated
&& install_file_in_file (from, to, x)
install_file_i... (from, to, x)Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
;
0-8
1516 free (to);-
1517 return
executed 8 times by 1 test: return ret;
Executed by:
  • ginstall
ret;
executed 8 times by 1 test: return ret;
Executed by:
  • ginstall
8
1518}-
1519-
1520int-
1521main (int argc, char **argv)-
1522{-
1523 int optc;-
1524 int exit_status = -
1525 0-
1526 ;-
1527 const char *specified_mode = -
1528 ((void *)0)-
1529 ;-
1530 -
1531 _Bool -
1532 make_backups = -
1533 0-
1534 ;-
1535 char const *backup_suffix = -
1536 ((void *)0)-
1537 ;-
1538 char *version_control_string = -
1539 ((void *)0)-
1540 ;-
1541 -
1542 _Bool -
1543 mkdir_and_install = -
1544 0-
1545 ;-
1546 struct cp_options x;-
1547 char const *target_directory = -
1548 ((void *)0)-
1549 ;-
1550 -
1551 _Bool -
1552 no_target_directory = -
1553 0-
1554 ;-
1555 int n_files;-
1556 char **file;-
1557 -
1558 _Bool -
1559 strip_program_specified = -
1560 0-
1561 ;-
1562 char const *scontext = -
1563 ((void *)0)-
1564 ;-
1565-
1566 selinux_enabled = (0 < is_selinux_enabled ());-
1567-
1568 ;-
1569 set_program_name (argv[0]);-
1570 setlocale (-
1571 6-
1572 , "");-
1573 bindtextdomain ("coreutils", "/usr/local/share/locale");-
1574 textdomain ("coreutils");-
1575-
1576 atexit (close_stdin);-
1577-
1578 cp_option_init (&x);-
1579-
1580 owner_name = -
1581 ((void *)0)-
1582 ;-
1583 group_name = -
1584 ((void *)0)-
1585 ;-
1586 strip_files = -
1587 0-
1588 ;-
1589 dir_arg = -
1590 0-
1591 ;-
1592 umask (0);-
1593-
1594 while ((
(optc = getopt... *)0) )) != -1Description
TRUEevaluated 155 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 37 times by 1 test
Evaluated by:
  • ginstall
optc = getopt_long (argc, argv, "bcCsDdg:m:o:pt:TvS:Z", long_options,
(optc = getopt... *)0) )) != -1Description
TRUEevaluated 155 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 37 times by 1 test
Evaluated by:
  • ginstall
37-155
1595
(optc = getopt... *)0) )) != -1Description
TRUEevaluated 155 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 37 times by 1 test
Evaluated by:
  • ginstall
37-155
1596 ((void *)0)
(optc = getopt... *)0) )) != -1Description
TRUEevaluated 155 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 37 times by 1 test
Evaluated by:
  • ginstall
37-155
1597 )) != -1
(optc = getopt... *)0) )) != -1Description
TRUEevaluated 155 times by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 37 times by 1 test
Evaluated by:
  • ginstall
)
37-155
1598 {-
1599 switch (optc)-
1600 {-
1601 case
executed 3 times by 1 test: case 'b':
Executed by:
  • ginstall
'b':
executed 3 times by 1 test: case 'b':
Executed by:
  • ginstall
3
1602 make_backups = -
1603 1-
1604 ;-
1605 if (optarg
optargDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEevaluated 2 times by 1 test
Evaluated by:
  • ginstall
)
1-2
1606 version_control_string = optarg;
executed 1 time by 1 test: version_control_string = optarg;
Executed by:
  • ginstall
1
1607 break;
executed 3 times by 1 test: break;
Executed by:
  • ginstall
3
1608 case
executed 2 times by 1 test: case 'c':
Executed by:
  • ginstall
'c':
executed 2 times by 1 test: case 'c':
Executed by:
  • ginstall
2
1609 break;
executed 2 times by 1 test: break;
Executed by:
  • ginstall
2
1610 case
executed 16 times by 1 test: case 'C':
Executed by:
  • ginstall
'C':
executed 16 times by 1 test: case 'C':
Executed by:
  • ginstall
16
1611 copy_only_if_needed = -
1612 1-
1613 ;-
1614 break;
executed 16 times by 1 test: break;
Executed by:
  • ginstall
16
1615 case
executed 8 times by 1 test: case 's':
Executed by:
  • ginstall
's':
executed 8 times by 1 test: case 's':
Executed by:
  • ginstall
8
1616 strip_files = -
1617 1-
1618 ;-
1619-
1620-
1621 signal (-
1622 17-
1623 , -
1624 ((__sighandler_t) 0)-
1625 );-
1626-
1627 break;
executed 8 times by 1 test: break;
Executed by:
  • ginstall
8
1628 case
executed 5 times by 1 test: case STRIP_PROGRAM_OPTION:
Executed by:
  • ginstall
STRIP_PROGRAM_OPTION:
executed 5 times by 1 test: case STRIP_PROGRAM_OPTION:
Executed by:
  • ginstall
5
1629 strip_program = xstrdup (optarg);-
1630 strip_program_specified = -
1631 1-
1632 ;-
1633 break;
executed 5 times by 1 test: break;
Executed by:
  • ginstall
5
1634 case
executed 9 times by 1 test: case 'd':
Executed by:
  • ginstall
'd':
executed 9 times by 1 test: case 'd':
Executed by:
  • ginstall
9
1635 dir_arg = -
1636 1-
1637 ;-
1638 break;
executed 9 times by 1 test: break;
Executed by:
  • ginstall
9
1639 case
executed 7 times by 1 test: case 'D':
Executed by:
  • ginstall
'D':
executed 7 times by 1 test: case 'D':
Executed by:
  • ginstall
7
1640 mkdir_and_install = -
1641 1-
1642 ;-
1643 break;
executed 7 times by 1 test: break;
Executed by:
  • ginstall
7
1644 case
executed 19 times by 1 test: case 'v':
Executed by:
  • ginstall
'v':
executed 19 times by 1 test: case 'v':
Executed by:
  • ginstall
19
1645 x.verbose = -
1646 1-
1647 ;-
1648 break;
executed 19 times by 1 test: break;
Executed by:
  • ginstall
19
1649 case
executed 2 times by 1 test: case 'g':
Executed by:
  • ginstall
'g':
executed 2 times by 1 test: case 'g':
Executed by:
  • ginstall
2
1650 group_name = optarg;-
1651 break;
executed 2 times by 1 test: break;
Executed by:
  • ginstall
2
1652 case
executed 16 times by 1 test: case 'm':
Executed by:
  • ginstall
'm':
executed 16 times by 1 test: case 'm':
Executed by:
  • ginstall
16
1653 specified_mode = optarg;-
1654 break;
executed 16 times by 1 test: break;
Executed by:
  • ginstall
16
1655 case
executed 2 times by 1 test: case 'o':
Executed by:
  • ginstall
'o':
executed 2 times by 1 test: case 'o':
Executed by:
  • ginstall
2
1656 owner_name = optarg;-
1657 break;
executed 2 times by 1 test: break;
Executed by:
  • ginstall
2
1658 case
executed 3 times by 1 test: case 'p':
Executed by:
  • ginstall
'p':
executed 3 times by 1 test: case 'p':
Executed by:
  • ginstall
3
1659 x.preserve_timestamps = -
1660 1-
1661 ;-
1662 break;
executed 3 times by 1 test: break;
Executed by:
  • ginstall
3
1663 case
executed 3 times by 1 test: case 'S':
Executed by:
  • ginstall
'S':
executed 3 times by 1 test: case 'S':
Executed by:
  • ginstall
3
1664 make_backups = -
1665 1-
1666 ;-
1667 backup_suffix = optarg;-
1668 break;
executed 3 times by 1 test: break;
Executed by:
  • ginstall
3
1669 case
executed 6 times by 1 test: case 't':
Executed by:
  • ginstall
't':
executed 6 times by 1 test: case 't':
Executed by:
  • ginstall
6
1670 if (target_directory
target_directoryDescription
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • ginstall
)
0-6
1671 ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple target directories specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
!!sizeof (struct { _Static_assert (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple target directories specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1672 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple target directories specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1673 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple target directories specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple target directories specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1674 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple target directories specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1675 , 0,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple target directories specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1676 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple target directories specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1677 "multiple target directories specified"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple target directories specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1678 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple target directories specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1679 ), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple target directories specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1680 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple target directories specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1681 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple target directories specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1682 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple target directories specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1683 , 0,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple target directories specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1684 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple target directories specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1685 "multiple target directories specified"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple target directories specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1686 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple target directories specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1687 ), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple target directories specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1688 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple target directories specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1689 ) ? (void) 0 : __builtin_unreachable ()))))
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple target directories specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1690 ;
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple target directories specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple target directories specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1691 target_directory = optarg;-
1692 break;
executed 6 times by 1 test: break;
Executed by:
  • ginstall
6
1693 case
executed 2 times by 1 test: case 'T':
Executed by:
  • ginstall
'T':
executed 2 times by 1 test: case 'T':
Executed by:
  • ginstall
2
1694 no_target_directory = -
1695 1-
1696 ;-
1697 break;
executed 2 times by 1 test: break;
Executed by:
  • ginstall
2
1698-
1699 case
executed 1 time by 1 test: case PRESERVE_CONTEXT_OPTION:
Executed by:
  • ginstall
PRESERVE_CONTEXT_OPTION:
executed 1 time by 1 test: case PRESERVE_CONTEXT_OPTION:
Executed by:
  • ginstall
1
1700 if (! selinux_enabled
! selinux_enabledDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ginstall
FALSEnever evaluated
)
0-1
1701 {-
1702 error (0, 0, -
1703 dcgettext (((void *)0), -
1704 "WARNING: ignoring --preserve-context; " "this kernel is not SELinux-enabled"-
1705 , 5)-
1706 -
1707 );-
1708 break;
executed 1 time by 1 test: break;
Executed by:
  • ginstall
1
1709 }-
1710 x.preserve_security_context = -
1711 1-
1712 ;-
1713 use_default_selinux_context = -
1714 0-
1715 ;-
1716 break;
never executed: break;
0
1717 case
executed 2 times by 1 test: case 'Z':
Executed by:
  • ginstall
'Z':
executed 2 times by 1 test: case 'Z':
Executed by:
  • ginstall
2
1718 if (selinux_enabled
selinux_enabledDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • ginstall
)
0-2
1719 {-
1720-
1721-
1722-
1723-
1724-
1725