OpenCoverage

chmod.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/chmod.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3enum Change_status-
4{-
5 CH_NOT_APPLIED,-
6 CH_SUCCEEDED,-
7 CH_FAILED,-
8 CH_NO_CHANGE_REQUESTED-
9};-
10-
11enum Verbosity-
12{-
13-
14 V_high,-
15-
16-
17 V_changes_only,-
18-
19-
20 V_off-
21};-
22-
23-
24static struct mode_change *change;-
25-
26-
27static mode_t umask_value;-
28-
29-
30static -
31 _Bool -
32 recurse;-
33-
34-
35static -
36 _Bool -
37 force_silent;-
38-
39-
40-
41-
42static -
43 _Bool -
44 diagnose_surprises;-
45-
46-
47static enum Verbosity verbosity = V_off;-
48-
49-
50-
51static struct dev_ino *root_dev_ino;-
52-
53-
54-
55enum-
56{-
57 NO_PRESERVE_ROOT = 0x7f + 1,-
58 PRESERVE_ROOT,-
59 REFERENCE_FILE_OPTION-
60};-
61-
62static struct option const long_options[] =-
63{-
64 {"changes", -
65 0-
66 , -
67 ((void *)0)-
68 , 'c'},-
69 {"recursive", -
70 0-
71 , -
72 ((void *)0)-
73 , 'R'},-
74 {"no-preserve-root", -
75 0-
76 , -
77 ((void *)0)-
78 , NO_PRESERVE_ROOT},-
79 {"preserve-root", -
80 0-
81 , -
82 ((void *)0)-
83 , PRESERVE_ROOT},-
84 {"quiet", -
85 0-
86 , -
87 ((void *)0)-
88 , 'f'},-
89 {"reference", -
90 1-
91 , -
92 ((void *)0)-
93 , REFERENCE_FILE_OPTION},-
94 {"silent", -
95 0-
96 , -
97 ((void *)0)-
98 , 'f'},-
99 {"verbose", -
100 0-
101 , -
102 ((void *)0)-
103 , 'v'},-
104 {"help", -
105 0-
106 , -
107 ((void *)0)-
108 , GETOPT_HELP_CHAR},-
109 {"version", -
110 0-
111 , -
112 ((void *)0)-
113 , GETOPT_VERSION_CHAR},-
114 {-
115 ((void *)0)-
116 , 0, -
117 ((void *)0)-
118 , 0}-
119};-
120-
121-
122-
123-
124static -
125 _Bool-
126-
127mode_changed (int dir_fd, char const *file, char const *file_full_name,-
128 mode_t old_mode, mode_t new_mode)-
129{-
130 if (new_mode & (
new_mode & ( 0...2000 | 01000 )Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 3 times by 1 test
Evaluated by:
  • chmod
1-3
131 04000
new_mode & ( 0...2000 | 01000 )Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 3 times by 1 test
Evaluated by:
  • chmod
1-3
132 |
new_mode & ( 0...2000 | 01000 )Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 3 times by 1 test
Evaluated by:
  • chmod
1-3
133 02000
new_mode & ( 0...2000 | 01000 )Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 3 times by 1 test
Evaluated by:
  • chmod
1-3
134 |
new_mode & ( 0...2000 | 01000 )Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 3 times by 1 test
Evaluated by:
  • chmod
1-3
135 01000
new_mode & ( 0...2000 | 01000 )Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 3 times by 1 test
Evaluated by:
  • chmod
1-3
136 )
new_mode & ( 0...2000 | 01000 )Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 3 times by 1 test
Evaluated by:
  • chmod
)
1-3
137 {-
138-
139-
140-
141 struct stat new_stats;-
142-
143 if (fstatat (dir_fd, file, &new_stats, 0) != 0
fstatat (dir_f...stats, 0) != 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • chmod
)
0-1
144 {-
145 if (! force_silent
! force_silentDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
146 error (0,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "getting new attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
147 (*__errno_location ())
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "getting new attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
148 ,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "getting new attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
149 dcgettext (((void *)0),
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "getting new attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
150 "getting new attributes of %s"
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "getting new attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
151 , 5)
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "getting new attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
152 ,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "getting new attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
153 quotearg_style (shell_escape_always_quoting_style, file_full_name));
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "getting new attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
154 return
never executed: return 0 ;
never executed: return 0 ;
0
155 0
never executed: return 0 ;
0
156 ;
never executed: return 0 ;
0
157 }-
158-
159 new_mode = new_stats.st_mode;-
160 }
executed 1 time by 1 test: end of block
Executed by:
  • chmod
1
161-
162 return
executed 4 times by 1 test: return ((old_mode ^ new_mode) & ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) )) != 0;
Executed by:
  • chmod
((old_mode ^ new_mode) & (
executed 4 times by 1 test: return ((old_mode ^ new_mode) & ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) )) != 0;
Executed by:
  • chmod
4
163 04000
executed 4 times by 1 test: return ((old_mode ^ new_mode) & ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) )) != 0;
Executed by:
  • chmod
4
164 |
executed 4 times by 1 test: return ((old_mode ^ new_mode) & ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) )) != 0;
Executed by:
  • chmod
4
165 02000
executed 4 times by 1 test: return ((old_mode ^ new_mode) & ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) )) != 0;
Executed by:
  • chmod
4
166 |
executed 4 times by 1 test: return ((old_mode ^ new_mode) & ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) )) != 0;
Executed by:
  • chmod
4
167 01000
executed 4 times by 1 test: return ((old_mode ^ new_mode) & ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) )) != 0;
Executed by:
  • chmod
4
168 |
executed 4 times by 1 test: return ((old_mode ^ new_mode) & ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) )) != 0;
Executed by:
  • chmod
4
169 (0400|0200|0100)
executed 4 times by 1 test: return ((old_mode ^ new_mode) & ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) )) != 0;
Executed by:
  • chmod
4
170 |
executed 4 times by 1 test: return ((old_mode ^ new_mode) & ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) )) != 0;
Executed by:
  • chmod
4
171 ((0400|0200|0100) >> 3)
executed 4 times by 1 test: return ((old_mode ^ new_mode) & ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) )) != 0;
Executed by:
  • chmod
4
172 |
executed 4 times by 1 test: return ((old_mode ^ new_mode) & ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) )) != 0;
Executed by:
  • chmod
4
173 (((0400|0200|0100) >> 3) >> 3)
executed 4 times by 1 test: return ((old_mode ^ new_mode) & ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) )) != 0;
Executed by:
  • chmod
4
174 )) != 0;
executed 4 times by 1 test: return ((old_mode ^ new_mode) & ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) )) != 0;
Executed by:
  • chmod
4
175}-
176-
177-
178-
179-
180static void-
181describe_change (const char *file, mode_t old_mode, mode_t mode,-
182 enum Change_status changed)-
183{-
184 char perms[12];-
185 char old_perms[12];-
186 const char *fmt;-
187-
188 if (changed == CH_NOT_APPLIED
changed == CH_NOT_APPLIEDDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • chmod
)
0-1
189 {-
190 printf (-
191 dcgettext (((void *)0), -
192 "neither symbolic link %s nor referent has been changed\n"-
193 , 5)-
194 ,-
195 quotearg_style (shell_escape_always_quoting_style, file));-
196 return;
never executed: return;
0
197 }-
198-
199 strmode (mode, perms);-
200 perms[10] = '\0';-
201-
202 strmode (old_mode, old_perms);-
203 old_perms[10] = '\0';-
204-
205 switch (changed)-
206 {-
207 case
executed 1 time by 1 test: case CH_SUCCEEDED:
Executed by:
  • chmod
CH_SUCCEEDED:
executed 1 time by 1 test: case CH_SUCCEEDED:
Executed by:
  • chmod
1
208 fmt = -
209 dcgettext (((void *)0), -
210 "mode of %s changed from %04lo (%s) to %04lo (%s)\n"-
211 , 5)-
212 ;-
213 break;
executed 1 time by 1 test: break;
Executed by:
  • chmod
1
214 case
never executed: case CH_FAILED:
CH_FAILED:
never executed: case CH_FAILED:
0
215 fmt = -
216 dcgettext (((void *)0), -
217 "failed to change mode of %s from %04lo (%s) to %04lo (%s)\n"-
218 , 5)-
219 ;-
220 break;
never executed: break;
0
221 case
never executed: case CH_NO_CHANGE_REQUESTED:
CH_NO_CHANGE_REQUESTED:
never executed: case CH_NO_CHANGE_REQUESTED:
0
222 fmt = -
223 dcgettext (((void *)0), -
224 "mode of %s retained as %04lo (%s)\n"-
225 , 5)-
226 ;-
227 printf (fmt, quotearg_style (shell_escape_always_quoting_style, file),-
228 (unsigned long int) (mode & (-
229 04000 -
230 | -
231 02000 -
232 | -
233 01000 -
234 | -
235 (0400|0200|0100) -
236 | -
237 ((0400|0200|0100) >> 3) -
238 | -
239 (((0400|0200|0100) >> 3) >> 3)-
240 )), &perms[1]);-
241 return;
never executed: return;
0
242 default
never executed: default:
:
never executed: default:
0
243 abort ();
never executed: abort ();
0
244 }-
245 printf (fmt, quotearg_style (shell_escape_always_quoting_style, file),-
246 (unsigned long int) (old_mode & (-
247 04000 -
248 | -
249 02000 -
250 | -
251 01000 -
252 | -
253 (0400|0200|0100) -
254 | -
255 ((0400|0200|0100) >> 3) -
256 | -
257 (((0400|0200|0100) >> 3) >> 3)-
258 )), &old_perms[1],-
259 (unsigned long int) (mode & (-
260 04000 -
261 | -
262 02000 -
263 | -
264 01000 -
265 | -
266 (0400|0200|0100) -
267 | -
268 ((0400|0200|0100) >> 3) -
269 | -
270 (((0400|0200|0100) >> 3) >> 3)-
271 )), &perms[1]);-
272}
executed 1 time by 1 test: end of block
Executed by:
  • chmod
1
273-
274-
275-
276-
277-
278static -
279 _Bool-
280-
281process_file (FTS *fts, FTSENT *ent)-
282{-
283 char const *file_full_name = ent->fts_path;-
284 char const *file = ent->fts_accpath;-
285 const struct stat *file_stats = ent->fts_statp;-
286 mode_t old_mode ;-
287 mode_t new_mode ;-
288 -
289 _Bool -
290 ok = -
291 1-
292 ;-
293 -
294 _Bool -
295 chmod_succeeded = -
296 0-
297 ;-
298-
299 switch (ent->fts_info)-
300 {-
301 case
executed 42988 times by 1 test: case 6:
Executed by:
  • chmod
6:
executed 42988 times by 1 test: case 6:
Executed by:
  • chmod
42988
302 return
executed 42988 times by 1 test: return 1 ;
Executed by:
  • chmod
executed 42988 times by 1 test: return 1 ;
Executed by:
  • chmod
42988
303 1
executed 42988 times by 1 test: return 1 ;
Executed by:
  • chmod
42988
304 ;
executed 42988 times by 1 test: return 1 ;
Executed by:
  • chmod
42988
305-
306 case
executed 45 times by 1 test: case 10:
Executed by:
  • chmod
10:
executed 45 times by 1 test: case 10:
Executed by:
  • chmod
45
307-
308-
309-
310-
311-
312-
313-
314 if (ent->fts_level == 0
ent->fts_level == 0Description
TRUEevaluated 44 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 1 time by 1 test
Evaluated by:
  • chmod
&& ent->fts_number == 0
ent->fts_number == 0Description
TRUEevaluated 22 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 22 times by 1 test
Evaluated by:
  • chmod
)
1-44
315 {-
316 ent->fts_number = 1;-
317 fts_set (fts, ent, 1);-
318 return
executed 22 times by 1 test: return 1 ;
Executed by:
  • chmod
executed 22 times by 1 test: return 1 ;
Executed by:
  • chmod
22
319 1
executed 22 times by 1 test: return 1 ;
Executed by:
  • chmod
22
320 ;
executed 22 times by 1 test: return 1 ;
Executed by:
  • chmod
22
321 }-
322 if (! force_silent
! force_silentDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 1 time by 1 test
Evaluated by:
  • chmod
)
1-22
323 error (0, ent->fts_errno,
executed 22 times by 1 test: error (0, ent->fts_errno, dcgettext (((void *)0), "cannot access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chmod
22
324 dcgettext (((void *)0),
executed 22 times by 1 test: error (0, ent->fts_errno, dcgettext (((void *)0), "cannot access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chmod
22
325 "cannot access %s"
executed 22 times by 1 test: error (0, ent->fts_errno, dcgettext (((void *)0), "cannot access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chmod
22
326 , 5)
executed 22 times by 1 test: error (0, ent->fts_errno, dcgettext (((void *)0), "cannot access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chmod
22
327 ,
executed 22 times by 1 test: error (0, ent->fts_errno, dcgettext (((void *)0), "cannot access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chmod
22
328 quotearg_style (shell_escape_always_quoting_style, file_full_name));
executed 22 times by 1 test: error (0, ent->fts_errno, dcgettext (((void *)0), "cannot access %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chmod
22
329 ok = -
330 0-
331 ;-
332 break;
executed 23 times by 1 test: break;
Executed by:
  • chmod
23
333-
334 case
never executed: case 7:
7:
never executed: case 7:
0
335 if (! force_silent
! force_silentDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
336 error (0, ent->fts_errno, "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, file_full_name));
never executed: error (0, ent->fts_errno, "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, file_full_name));
0
337 ok = -
338 0-
339 ;-
340 break;
never executed: break;
0
341-
342 case
never executed: case 4:
4:
never executed: case 4:
0
343 if (! force_silent
! force_silentDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
344 error (0, ent->fts_errno,
never executed: error (0, ent->fts_errno, dcgettext (((void *)0), "cannot read directory %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
345 dcgettext (((void *)0),
never executed: error (0, ent->fts_errno, dcgettext (((void *)0), "cannot read directory %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
346 "cannot read directory %s"
never executed: error (0, ent->fts_errno, dcgettext (((void *)0), "cannot read directory %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
347 , 5)
never executed: error (0, ent->fts_errno, dcgettext (((void *)0), "cannot read directory %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
348 ,
never executed: error (0, ent->fts_errno, dcgettext (((void *)0), "cannot read directory %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
349 quotearg_style (shell_escape_always_quoting_style, file_full_name));
never executed: error (0, ent->fts_errno, dcgettext (((void *)0), "cannot read directory %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
350 ok = -
351 0-
352 ;-
353 break;
never executed: break;
0
354-
355 case
executed 1 time by 1 test: case 13:
Executed by:
  • chmod
13:
executed 1 time by 1 test: case 13:
Executed by:
  • chmod
1
356 if (! force_silent
! force_silentDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
)
0-1
357 error (0, 0,
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "cannot operate on dangling symlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chmod
1
358 dcgettext (((void *)0),
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "cannot operate on dangling symlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chmod
1
359 "cannot operate on dangling symlink %s"
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "cannot operate on dangling symlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chmod
1
360 , 5)
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "cannot operate on dangling symlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chmod
1
361 ,
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "cannot operate on dangling symlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chmod
1
362 quotearg_style (shell_escape_always_quoting_style, file_full_name));
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "cannot operate on dangling symlink %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chmod
1
363 ok = -
364 0-
365 ;-
366 break;
executed 1 time by 1 test: break;
Executed by:
  • chmod
1
367-
368 case
never executed: case 2:
2:
never executed: case 2:
0
369 if (cycle_warning_required (fts, ent)
cycle_warning_...red (fts, ent)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
370 {-
371 do { error (0, 0, -
372 dcgettext (((void *)0), -
373 "WARNING: Circular directory structure.\nThis almost certainly means that you have a corrupted file system.\nNOTIFY YOUR SYSTEM MANAGER.\nThe following directory is part of the cycle:\n %s\n"-
374 , 5)-
375 , quotearg_n_style_colon (0, shell_escape_quoting_style, file_full_name)); } while (0);-
376 return
never executed: return 0 ;
never executed: return 0 ;
0
377 0
never executed: return 0 ;
0
378 ;
never executed: return 0 ;
0
379 }-
380 break;
never executed: break;
0
381-
382 default
executed 290969 times by 1 test: default:
Executed by:
  • chmod
:
executed 290969 times by 1 test: default:
Executed by:
  • chmod
290969
383 break;
executed 290969 times by 1 test: break;
Executed by:
  • chmod
290969
384 }-
385-
386 if (ok
okDescription
TRUEevaluated 290969 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 24 times by 1 test
Evaluated by:
  • chmod
&& (root_dev_ino
root_dev_inoDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 290968 times by 1 test
Evaluated by:
  • chmod
&& ((*
(*file_stats)....ev_ino).st_inoDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
file_stats).st_ino == (*root_dev_ino).st_ino
(*file_stats)....ev_ino).st_inoDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
&& (*
(*file_stats)....ev_ino).st_devDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
file_stats).st_dev == (*root_dev_ino).st_dev
(*file_stats)....ev_ino).st_devDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
)))
0-290969
387 {-
388 do { if ((
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
389 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
390 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
391 ) && __builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
392 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
393 ) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
394 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
395 ), __s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
396 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
397 ), (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
398 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
399 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
400 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
401 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
402 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
403 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
404 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
405 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
406 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
407 ,
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
408 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
409 ) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
410 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
411 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
412 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
413 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
414 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
415 ) == 1) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
416 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
417 ), __s1_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
418 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
419 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
420 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
421 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
422 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
423 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
424 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
425 ,
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
426 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
427 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
428 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
429 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
430 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
431 ))[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
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
432 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
433 ))[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
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
434 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
435 ))[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_full_name ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
436 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( file_full_name ))[3] - __s2[3]);
0-1
437 ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( file_full_name ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
438 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
439 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
440 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
441 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
442 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
443 ) == 1) && (__s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
444 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
445 ), __s2_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
446 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
447 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
448 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
449 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
450 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
451 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
452 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
453 ,
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
454 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
455 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
456 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
457 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
458 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
459 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
460 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
461 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • chmod
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
462 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
463 ))[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 *) ( "/" ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
464 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( "/" ))[3] - __s2[3]);
0-1
465 ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( "/" ))[3] - __s2[3]);
}
never executed: end of block
}
executed 1 time by 1 test: end of block
Executed by:
  • chmod
__result; }))) : __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
466 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
467 ,
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
468 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
469 )))); })
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-1
470 == 0)
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
) error (0, 0,
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "it is dangerous to operate recursively on %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chmod
0-1
471 dcgettext (((void *)0),
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "it is dangerous to operate recursively on %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chmod
1
472 "it is dangerous to operate recursively on %s"
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "it is dangerous to operate recursively on %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chmod
1
473 , 5)
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "it is dangerous to operate recursively on %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chmod
1
474 , quotearg_style (shell_escape_always_quoting_style, file_full_name));
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "it is dangerous to operate recursively on %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chmod
else error (0, 0,
never executed: error (0, 0, dcgettext (((void *)0), "it is dangerous to operate recursively on %s (same as %s)" , 5) , quotearg_n_style (0, shell_escape_always_quoting_style, file_full_name), quotearg_n_style (1, shell_escape_always_quoting_style, "/"));
0-1
475 dcgettext (((void *)0),
never executed: error (0, 0, dcgettext (((void *)0), "it is dangerous to operate recursively on %s (same as %s)" , 5) , quotearg_n_style (0, shell_escape_always_quoting_style, file_full_name), quotearg_n_style (1, shell_escape_always_quoting_style, "/"));
0
476 "it is dangerous to operate recursively on %s (same as %s)"
never executed: error (0, 0, dcgettext (((void *)0), "it is dangerous to operate recursively on %s (same as %s)" , 5) , quotearg_n_style (0, shell_escape_always_quoting_style, file_full_name), quotearg_n_style (1, shell_escape_always_quoting_style, "/"));
0
477 , 5)
never executed: error (0, 0, dcgettext (((void *)0), "it is dangerous to operate recursively on %s (same as %s)" , 5) , quotearg_n_style (0, shell_escape_always_quoting_style, file_full_name), quotearg_n_style (1, shell_escape_always_quoting_style, "/"));
0
478 , quotearg_n_style (0, shell_escape_always_quoting_style, file_full_name), quotearg_n_style (1, shell_escape_always_quoting_style, "/"));
never executed: error (0, 0, dcgettext (((void *)0), "it is dangerous to operate recursively on %s (same as %s)" , 5) , quotearg_n_style (0, shell_escape_always_quoting_style, file_full_name), quotearg_n_style (1, shell_escape_always_quoting_style, "/"));
error (0, 0,
0
479 dcgettext (((void *)0), -
480 "use --no-preserve-root to override this failsafe"-
481 , 5)-
482 ); } while (0);-
483-
484 fts_set (fts, ent, 4);-
485-
486 (__extension__ ({ __typeof__ (fts_read (fts)) __x = (fts_read (fts)); (void) __x; }));-
487 return
executed 1 time by 1 test: return 0 ;
Executed by:
  • chmod
executed 1 time by 1 test: return 0 ;
Executed by:
  • chmod
1
488 0
executed 1 time by 1 test: return 0 ;
Executed by:
  • chmod
1
489 ;
executed 1 time by 1 test: return 0 ;
Executed by:
  • chmod
1
490 }-
491-
492 if (ok
okDescription
TRUEevaluated 290968 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 24 times by 1 test
Evaluated by:
  • chmod
)
24-290968
493 {-
494 old_mode = file_stats->st_mode;-
495 new_mode = mode_adjust (old_mode, -
496 ((((-
497 old_mode-
498 )) & 0170000) == (0040000)) -
499 != 0, umask_value,-
500 change, -
501 ((void *)0)-
502 );-
503-
504 if (!
! (((( old_mod... == (0120000))Description
TRUEevaluated 290404 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 564 times by 1 test
Evaluated by:
  • chmod
564-290404
505 ((((
! (((( old_mod... == (0120000))Description
TRUEevaluated 290404 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 564 times by 1 test
Evaluated by:
  • chmod
564-290404
506 old_mode
! (((( old_mod... == (0120000))Description
TRUEevaluated 290404 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 564 times by 1 test
Evaluated by:
  • chmod
564-290404
507 )) & 0170000) == (0120000))
! (((( old_mod... == (0120000))Description
TRUEevaluated 290404 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 564 times by 1 test
Evaluated by:
  • chmod
564-290404
508 )-
509 {-
510 if (chmodat (fts->fts_cwd_fd, file, new_mode) == 0
chmodat (fts->...new_mode) == 0Description
TRUEevaluated 290404 times by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
)
0-290404
511 chmod_succeeded =
executed 290404 times by 1 test: chmod_succeeded = 1 ;
Executed by:
  • chmod
290404
512 1
executed 290404 times by 1 test: chmod_succeeded = 1 ;
Executed by:
  • chmod
290404
513 ;
executed 290404 times by 1 test: chmod_succeeded = 1 ;
Executed by:
  • chmod
290404
514 else-
515 {-
516 if (! force_silent
! force_silentDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
517 error (0,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "changing permissions of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
518 (*__errno_location ())
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "changing permissions of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
519 ,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "changing permissions of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
520 dcgettext (((void *)0),
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "changing permissions of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
521 "changing permissions of %s"
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "changing permissions of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
522 , 5)
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "changing permissions of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
523 ,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "changing permissions of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
524 quotearg_style (shell_escape_always_quoting_style, file_full_name));
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "changing permissions of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
525 ok = -
526 0-
527 ;-
528 }
never executed: end of block
0
529 }-
530 }
executed 290968 times by 1 test: end of block
Executed by:
  • chmod
290968
531-
532 if (verbosity != V_off
verbosity != V_offDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 290988 times by 1 test
Evaluated by:
  • chmod
)
4-290988
533 {-
534 -
535 _Bool -
536 changed = (chmod_succeeded
chmod_succeededDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-4
537 && mode_changed (fts->fts_cwd_fd, file, file_full_name,
mode_changed (...ode, new_mode)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 3 times by 1 test
Evaluated by:
  • chmod
1-3
538 old_mode, new_mode)
mode_changed (...ode, new_mode)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 3 times by 1 test
Evaluated by:
  • chmod
);
1-3
539-
540 if (changed
changedDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 3 times by 1 test
Evaluated by:
  • chmod
|| verbosity == V_high
verbosity == V_highDescription
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • chmod
)
0-3
541 {-
542 enum Change_status ch_status =-
543 (!ok
!okDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • chmod
? CH_FAILED
0-1
544 : !chmod_succeeded
!chmod_succeededDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • chmod
? CH_NOT_APPLIED
0-1
545 : !changed
!changedDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • chmod
? CH_NO_CHANGE_REQUESTED
0-1
546 : CH_SUCCEEDED);-
547 describe_change (file_full_name, old_mode, new_mode, ch_status);-
548 }
executed 1 time by 1 test: end of block
Executed by:
  • chmod
1
549 }
executed 4 times by 1 test: end of block
Executed by:
  • chmod
4
550-
551 if (chmod_succeeded
chmod_succeededDescription
TRUEevaluated 290404 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 588 times by 1 test
Evaluated by:
  • chmod
&& diagnose_surprises
diagnose_surprisesDescription
TRUEevaluated 18 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 290386 times by 1 test
Evaluated by:
  • chmod
)
18-290404
552 {-
553 mode_t naively_expected_mode =-
554 mode_adjust (old_mode, -
555 ((((-
556 old_mode-
557 )) & 0170000) == (0040000)) -
558 != 0, 0, change, -
559 ((void *)0)-
560 );-
561 if (new_mode & ~naively_expected_mode
new_mode & ~na..._expected_modeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 17 times by 1 test
Evaluated by:
  • chmod
)
1-17
562 {-
563 char new_perms[12];-
564 char naively_expected_perms[12];-
565 strmode (new_mode, new_perms);-
566 strmode (naively_expected_mode, naively_expected_perms);-
567 new_perms[10] = naively_expected_perms[10] = '\0';-
568 error (0, 0,-
569 -
570 dcgettext (((void *)0), -
571 "%s: new permissions are %s, not %s"-
572 , 5)-
573 ,-
574 quotearg_n_style_colon (0, shell_escape_quoting_style, file_full_name),-
575 new_perms + 1, naively_expected_perms + 1);-
576 ok = -
577 0-
578 ;-
579 }
executed 1 time by 1 test: end of block
Executed by:
  • chmod
1
580 }
executed 18 times by 1 test: end of block
Executed by:
  • chmod
18
581-
582 if ( ! recurse
! recurseDescription
TRUEevaluated 222 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 290770 times by 1 test
Evaluated by:
  • chmod
)
222-290770
583 fts_set (fts, ent, 4);
executed 222 times by 1 test: fts_set (fts, ent, 4);
Executed by:
  • chmod
222
584-
585 return
executed 290992 times by 1 test: return ok;
Executed by:
  • chmod
ok;
executed 290992 times by 1 test: return ok;
Executed by:
  • chmod
290992
586}-
587-
588-
589-
590-
591-
592static -
593 _Bool-
594-
595process_files (char **files, int bit_flags)-
596{-
597 -
598 _Bool -
599 ok = -
600 1-
601 ;-
602-
603 FTS *fts = xfts_open (files, bit_flags, -
604 ((void *)0)-
605 );-
606-
607 while (1)-
608 {-
609 FTSENT *ent;-
610-
611 ent = fts_read (fts);-
612 if (ent ==
ent == ((void *)0)Description
TRUEevaluated 763 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 334003 times by 1 test
Evaluated by:
  • chmod
763-334003
613 ((void *)0)
ent == ((void *)0)Description
TRUEevaluated 763 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 334003 times by 1 test
Evaluated by:
  • chmod
763-334003
614 )-
615 {-
616 if (-
617 (*
(*__errno_location ()) != 0Description
TRUEnever evaluated
FALSEevaluated 763 times by 1 test
Evaluated by:
  • chmod
__errno_location ())
(*__errno_location ()) != 0Description
TRUEnever evaluated
FALSEevaluated 763 times by 1 test
Evaluated by:
  • chmod
0-763
618 != 0
(*__errno_location ()) != 0Description
TRUEnever evaluated
FALSEevaluated 763 times by 1 test
Evaluated by:
  • chmod
)
0-763
619 {-
620-
621 if (! force_silent
! force_silentDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
622 error (0,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "fts_read failed" , 5) );
0
623 (*__errno_location ())
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "fts_read failed" , 5) );
0
624 ,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "fts_read failed" , 5) );
0
625 dcgettext (((void *)0),
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "fts_read failed" , 5) );
0
626 "fts_read failed"
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "fts_read failed" , 5) );
0
627 , 5)
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "fts_read failed" , 5) );
0
628 );
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "fts_read failed" , 5) );
0
629 ok = -
630 0-
631 ;-
632 }
never executed: end of block
0
633 break;
executed 763 times by 1 test: break;
Executed by:
  • chmod
763
634 }-
635-
636 ok &= process_file (fts, ent);-
637 }
executed 334003 times by 1 test: end of block
Executed by:
  • chmod
334003
638-
639 if (fts_close (fts) != 0
fts_close (fts) != 0Description
TRUEnever evaluated
FALSEevaluated 763 times by 1 test
Evaluated by:
  • chmod
)
0-763
640 {-
641 error (0, -
642 (*__errno_location ())-
643 , -
644 dcgettext (((void *)0), -
645 "fts_close failed"-
646 , 5)-
647 );-
648 ok = -
649 0-
650 ;-
651 }
never executed: end of block
0
652-
653 return
executed 763 times by 1 test: return ok;
Executed by:
  • chmod
ok;
executed 763 times by 1 test: return ok;
Executed by:
  • chmod
763
654}-
655-
656void-
657usage (int status)-
658{-
659 if (status !=
status != 0Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 15 times by 1 test
Evaluated by:
  • chmod
15-18
660 0
status != 0Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 15 times by 1 test
Evaluated by:
  • chmod
15-18
661 )-
662 do { fprintf (-
663 stderr-
664 , -
665 dcgettext (((void *)0), -
666 "Try '%s --help' for more information.\n"-
667 , 5)-
668 , program_name); }
executed 18 times by 1 test: end of block
Executed by:
  • chmod
while (0);
18
669 else-
670 {-
671 printf (-
672 dcgettext (((void *)0), -
673 "Usage: %s [OPTION]... MODE[,MODE]... FILE...\n or: %s [OPTION]... OCTAL-MODE FILE...\n or: %s [OPTION]... --reference=RFILE FILE...\n"-
674 , 5)-
675-
676-
677-
678 -
679 ,-
680 program_name, program_name, program_name);-
681 fputs_unlocked (-
682 dcgettext (((void *)0), -
683 "Change the mode of each FILE to MODE.\nWith --reference, change the mode of each FILE to that of RFILE.\n\n"-
684 , 5)-
685 ,-
686 stdout-
687 )-
688-
689-
690-
691 ;-
692 fputs_unlocked (-
693 dcgettext (((void *)0), -
694 " -c, --changes like verbose but report only when a change is made\n -f, --silent, --quiet suppress most error messages\n -v, --verbose output a diagnostic for every file processed\n"-
695 , 5)-
696 ,-
697 stdout-
698 )-
699-
700-
701-
702 ;-
703 fputs_unlocked (-
704 dcgettext (((void *)0), -
705 " --no-preserve-root do not treat '/' specially (the default)\n --preserve-root fail to operate recursively on '/'\n"-
706 , 5)-
707 ,-
708 stdout-
709 )-
710-
711-
712 ;-
713 fputs_unlocked (-
714 dcgettext (((void *)0), -
715 " --reference=RFILE use RFILE's mode instead of MODE values\n"-
716 , 5)-
717 ,-
718 stdout-
719 )-
720-
721 ;-
722 fputs_unlocked (-
723 dcgettext (((void *)0), -
724 " -R, --recursive change files and directories recursively\n"-
725 , 5)-
726 ,-
727 stdout-
728 )-
729-
730 ;-
731 fputs_unlocked (-
732 dcgettext (((void *)0), -
733 " --help display this help and exit\n"-
734 , 5)-
735 ,-
736 stdout-
737 );-
738 fputs_unlocked (-
739 dcgettext (((void *)0), -
740 " --version output version information and exit\n"-
741 , 5)-
742 ,-
743 stdout-
744 );-
745 fputs_unlocked (-
746 dcgettext (((void *)0), -
747 "\nEach MODE is of the form '[ugoa]*([-+=]([rwxXst]*|[ugo]))+|[-+=][0-7]+'.\n"-
748 , 5)-
749 ,-
750 stdout-
751 )-
752-
753-
754 ;-
755 emit_ancillary_info ("chmod");-
756 }
executed 15 times by 1 test: end of block
Executed by:
  • chmod
15
757 exit (status);
executed 33 times by 1 test: exit (status);
Executed by:
  • chmod
33
758}-
759-
760-
761-
762-
763int-
764main (int argc, char **argv)-
765{-
766 char *mode = -
767 ((void *)0)-
768 ;-
769 size_t mode_len = 0;-
770 size_t mode_alloc = 0;-
771 -
772 _Bool -
773 ok;-
774 -
775 _Bool -
776 preserve_root = -
777 0-
778 ;-
779 char const *reference_file = -
780 ((void *)0)-
781 ;-
782 int c;-
783-
784 ;-
785 set_program_name (argv[0]);-
786 setlocale (-
787 6-
788 , "");-
789 bindtextdomain ("coreutils", "/usr/local/share/locale");-
790 textdomain ("coreutils");-
791-
792 atexit (close_stdout);-
793-
794 recurse = force_silent = diagnose_surprises = -
795 0-
796 ;-
797-
798 while ((
(c = getopt_lo... *)0) )) != -1Description
TRUEevaluated 654 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 778 times by 1 test
Evaluated by:
  • chmod
c = getopt_long (argc, argv,
(c = getopt_lo... *)0) )) != -1Description
TRUEevaluated 654 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 778 times by 1 test
Evaluated by:
  • chmod
654-778
799 ("Rcfvr::w::x::X::s::t::u::g::o::a::,::+::=::"
(c = getopt_lo... *)0) )) != -1Description
TRUEevaluated 654 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 778 times by 1 test
Evaluated by:
  • chmod
654-778
800 "0::1::2::3::4::5::6::7::"),
(c = getopt_lo... *)0) )) != -1Description
TRUEevaluated 654 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 778 times by 1 test
Evaluated by:
  • chmod
654-778
801 long_options,
(c = getopt_lo... *)0) )) != -1Description
TRUEevaluated 654 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 778 times by 1 test
Evaluated by:
  • chmod
654-778
802 ((void *)0)
(c = getopt_lo... *)0) )) != -1Description
TRUEevaluated 654 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 778 times by 1 test
Evaluated by:
  • chmod
654-778
803 ))
(c = getopt_lo... *)0) )) != -1Description
TRUEevaluated 654 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 778 times by 1 test
Evaluated by:
  • chmod
654-778
804 != -1
(c = getopt_lo... *)0) )) != -1Description
TRUEevaluated 654 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 778 times by 1 test
Evaluated by:
  • chmod
)
654-778
805 {-
806 switch (c)-
807 {-
808 case
never executed: case 'r':
'r':
never executed: case 'r':
0
809 case
executed 30 times by 1 test: case 'w':
Executed by:
  • chmod
'w':
executed 30 times by 1 test: case 'w':
Executed by:
  • chmod
30
810 case
executed 1 time by 1 test: case 'x':
Executed by:
  • chmod
'x':
executed 1 time by 1 test: case 'x':
Executed by:
  • chmod
1
811 case
never executed: case 'X':
'X':
never executed: case 'X':
0
812 case
never executed: case 's':
's':
never executed: case 's':
0
813 case
never executed: case 't':
't':
never executed: case 't':
0
814 case
never executed: case 'u':
'u':
never executed: case 'u':
0
815 case
never executed: case 'g':
'g':
never executed: case 'g':
0
816 case
never executed: case 'o':
'o':
never executed: case 'o':
0
817 case
never executed: case 'a':
'a':
never executed: case 'a':
0
818 case
never executed: case ',':
',':
never executed: case ',':
0
819 case
never executed: case '+':
'+':
never executed: case '+':
0
820 case
never executed: case '=':
'=':
never executed: case '=':
0
821 case
never executed: case '0':
'0':
never executed: case '0':
case
never executed: case '1':
'1':
never executed: case '1':
case
executed 1 time by 1 test: case '2':
Executed by:
  • chmod
'2':
executed 1 time by 1 test: case '2':
Executed by:
  • chmod
case
never executed: case '3':
'3':
never executed: case '3':
0-1
822 case
never executed: case '4':
'4':
never executed: case '4':
case
executed 1 time by 1 test: case '5':
Executed by:
  • chmod
'5':
executed 1 time by 1 test: case '5':
Executed by:
  • chmod
case
never executed: case '6':
'6':
never executed: case '6':
case
executed 1 time by 1 test: case '7':
Executed by:
  • chmod
'7':
executed 1 time by 1 test: case '7':
Executed by:
  • chmod
0-1
823-
824-
825-
826-
827 {-
828-
829-
830-
831-
832-
833 char const *arg = argv[optind - 1];-
834 size_t arg_len = strlen (arg);-
835 size_t mode_comma_len = mode_len + !!mode_len;-
836 size_t new_mode_len = mode_comma_len + arg_len;-
837 if (mode_alloc <= new_mode_len
mode_alloc <= new_mode_lenDescription
TRUEevaluated 32 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 2 times by 1 test
Evaluated by:
  • chmod
)
2-32
838 {-
839 mode_alloc = new_mode_len + 1;-
840 mode = ((void) (!!sizeof (struct { _Static_assert (sizeof *(mode) == 1, "verify_true (" "sizeof *(mode) == 1" ")"); int _gl_dummy; })), x2realloc (mode, &mode_alloc));-
841 }
executed 32 times by 1 test: end of block
Executed by:
  • chmod
32
842 mode[mode_len] = ',';-
843 memcpy (mode + mode_comma_len, arg, arg_len + 1);-
844 mode_len = new_mode_len;-
845-
846 diagnose_surprises = -
847 1-
848 ;-
849 }-
850 break;
executed 34 times by 1 test: break;
Executed by:
  • chmod
34
851 case
executed 1 time by 1 test: case NO_PRESERVE_ROOT:
Executed by:
  • chmod
NO_PRESERVE_ROOT:
executed 1 time by 1 test: case NO_PRESERVE_ROOT:
Executed by:
  • chmod
1
852 preserve_root = -
853 0-
854 ;-
855 break;
executed 1 time by 1 test: break;
Executed by:
  • chmod
1
856 case
executed 2 times by 1 test: case PRESERVE_ROOT:
Executed by:
  • chmod
PRESERVE_ROOT:
executed 2 times by 1 test: case PRESERVE_ROOT:
Executed by:
  • chmod
2
857 preserve_root = -
858 1-
859 ;-
860 break;
executed 2 times by 1 test: break;
Executed by:
  • chmod
2
861 case
executed 1 time by 1 test: case REFERENCE_FILE_OPTION:
Executed by:
  • chmod
REFERENCE_FILE_OPTION:
executed 1 time by 1 test: case REFERENCE_FILE_OPTION:
Executed by:
  • chmod
1
862 reference_file = optarg;-
863 break;
executed 1 time by 1 test: break;
Executed by:
  • chmod
1
864 case
executed 572 times by 1 test: case 'R':
Executed by:
  • chmod
'R':
executed 572 times by 1 test: case 'R':
Executed by:
  • chmod
572
865 recurse = -
866 1-
867 ;-
868 break;
executed 572 times by 1 test: break;
Executed by:
  • chmod
572
869 case
executed 5 times by 1 test: case 'c':
Executed by:
  • chmod
'c':
executed 5 times by 1 test: case 'c':
Executed by:
  • chmod
5
870 verbosity = V_changes_only;-
871 break;
executed 5 times by 1 test: break;
Executed by:
  • chmod
5
872 case
executed 4 times by 1 test: case 'f':
Executed by:
  • chmod
'f':
executed 4 times by 1 test: case 'f':
Executed by:
  • chmod
4
873 force_silent = -
874 1-
875 ;-
876 break;
executed 4 times by 1 test: break;
Executed by:
  • chmod
4
877 case
executed 2 times by 1 test: case 'v':
Executed by:
  • chmod
'v':
executed 2 times by 1 test: case 'v':
Executed by:
  • chmod
2
878 verbosity = V_high;-
879 break;
executed 2 times by 1 test: break;
Executed by:
  • chmod
2
880 case
executed 15 times by 1 test: case GETOPT_HELP_CHAR:
Executed by:
  • chmod
GETOPT_HELP_CHAR:
executed 15 times by 1 test: case GETOPT_HELP_CHAR:
Executed by:
  • chmod
usage (
15
881 0-
882 ); break;
never executed: break;
;
0
883 case
executed 15 times by 1 test: case GETOPT_VERSION_CHAR:
Executed by:
  • chmod
GETOPT_VERSION_CHAR:
executed 15 times by 1 test: case GETOPT_VERSION_CHAR:
Executed by:
  • chmod
version_etc (
15
884 stdout-
885 , "chmod", "GNU coreutils", Version, ("David MacKenzie"), ("Jim Meyering"), (char *) -
886 ((void *)0)-
887 ); exit (
executed 15 times by 1 test: exit ( 0 );
Executed by:
  • chmod
15
888 0
executed 15 times by 1 test: exit ( 0 );
Executed by:
  • chmod
15
889 );
executed 15 times by 1 test: exit ( 0 );
Executed by:
  • chmod
break;
never executed: break;
;
0-15
890 default
executed 3 times by 1 test: default:
Executed by:
  • chmod
:
executed 3 times by 1 test: default:
Executed by:
  • chmod
3
891 usage (-
892 1-
893 );-
894 }
never executed: end of block
0
895 }-
896-
897 if (reference_file
reference_fileDescription
TRUEnever evaluated
FALSEevaluated 778 times by 1 test
Evaluated by:
  • chmod
)
0-778
898 {-
899 if (mode
modeDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
900 {-
901 error (0, 0, -
902 dcgettext (((void *)0), -
903 "cannot combine mode and --reference options"-
904 , 5)-
905 );-
906 usage (-
907 1-
908 );-
909 }
never executed: end of block
0
910 }
never executed: end of block
0
911 else-
912 {-
913 if (!mode
!modeDescription
TRUEevaluated 753 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 25 times by 1 test
Evaluated by:
  • chmod
)
25-753
914 mode = argv[optind++];
executed 753 times by 1 test: mode = argv[optind++];
Executed by:
  • chmod
753
915 }
executed 778 times by 1 test: end of block
Executed by:
  • chmod
778
916-
917 if (optind >= argc
optind >= argcDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 769 times by 1 test
Evaluated by:
  • chmod
)
9-769
918 {-
919 if (!mode
!modeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 8 times by 1 test
Evaluated by:
  • chmod
|| mode != argv[optind - 1]
mode != argv[optind - 1]Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 5 times by 1 test
Evaluated by:
  • chmod
)
1-8
920 error (0, 0,
executed 4 times by 1 test: error (0, 0, dcgettext (((void *)0), "missing operand" , 5) );
Executed by:
  • chmod
4
921 dcgettext (((void *)0),
executed 4 times by 1 test: error (0, 0, dcgettext (((void *)0), "missing operand" , 5) );
Executed by:
  • chmod
4
922 "missing operand"
executed 4 times by 1 test: error (0, 0, dcgettext (((void *)0), "missing operand" , 5) );
Executed by:
  • chmod
4
923 , 5)
executed 4 times by 1 test: error (0, 0, dcgettext (((void *)0), "missing operand" , 5) );
Executed by:
  • chmod
4
924 );
executed 4 times by 1 test: error (0, 0, dcgettext (((void *)0), "missing operand" , 5) );
Executed by:
  • chmod
4
925 else-
926 error (0, 0,
executed 5 times by 1 test: error (0, 0, dcgettext (((void *)0), "missing operand after %s" , 5) , quote (argv[argc - 1]));
Executed by:
  • chmod
5
927 dcgettext (((void *)0),
executed 5 times by 1 test: error (0, 0, dcgettext (((void *)0), "missing operand after %s" , 5) , quote (argv[argc - 1]));
Executed by:
  • chmod
5
928 "missing operand after %s"
executed 5 times by 1 test: error (0, 0, dcgettext (((void *)0), "missing operand after %s" , 5) , quote (argv[argc - 1]));
Executed by:
  • chmod
5
929 , 5)
executed 5 times by 1 test: error (0, 0, dcgettext (((void *)0), "missing operand after %s" , 5) , quote (argv[argc - 1]));
Executed by:
  • chmod
5
930 , quote (argv[argc - 1]));
executed 5 times by 1 test: error (0, 0, dcgettext (((void *)0), "missing operand after %s" , 5) , quote (argv[argc - 1]));
Executed by:
  • chmod
5
931 usage (-
932 1-
933 );-
934 }
never executed: end of block
0
935-
936 if (reference_file
reference_fileDescription
TRUEnever evaluated
FALSEevaluated 769 times by 1 test
Evaluated by:
  • chmod
)
0-769
937 {-
938 change = mode_create_from_ref (reference_file);-
939 if (!change
!changeDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
940 ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 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), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
941 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
942 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
943 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
944 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
945 (*__errno_location ())
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
946 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
947 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
948 "failed to get attributes of %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
949 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
950 , quotearg_style (shell_escape_always_quoting_style, reference_file)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
951 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
952 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
953 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
954 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
955 (*__errno_location ())
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
956 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
957 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
958 "failed to get attributes of %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
959 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
960 , quotearg_style (shell_escape_always_quoting_style, reference_file)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
961 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
962 ) ? (void) 0 : __builtin_unreachable ()))))
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
963 ;
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, reference_file)), assume (false))" ")... : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, reference_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
964 }
never executed: end of block
0
965 else-
966 {-
967 change = mode_compile (mode);-
968 if (!change
!changeDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 763 times by 1 test
Evaluated by:
  • chmod
)
6-763
969 {-
970 error (0, 0, -
971 dcgettext (((void *)0), -
972 "invalid mode: %s"-
973 , 5)-
974 , quote (mode));-
975 usage (-
976 1-
977 );-
978 }
never executed: end of block
0
979 umask_value = umask (0);-
980 }
executed 763 times by 1 test: end of block
Executed by:
  • chmod
763
981-
982 if (recurse
recurseDescription
TRUEevaluated 570 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 193 times by 1 test
Evaluated by:
  • chmod
&& preserve_root
preserve_rootDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 569 times by 1 test
Evaluated by:
  • chmod
)
1-570
983 {-
984 static struct dev_ino dev_ino_buf;-
985 root_dev_ino = get_root_dev_ino (&dev_ino_buf);-
986 if (root_dev_ino ==
root_dev_ino == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • chmod
0-1
987 ((void *)0)
root_dev_ino == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • chmod
0-1
988 )-
989 ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 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), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
990 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
991 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _gl_dummy; })) ? ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
992 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
993 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
994 (*__errno_location ())
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
995 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
996 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
997 "failed to get attributes of %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
998 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
999 , quotearg_style (shell_escape_always_quoting_style, "/")), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1000 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1001 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1002 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1003 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1004 (*__errno_location ())
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1005 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1006 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1007 "failed to get attributes of %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1008 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1009 , quotearg_style (shell_escape_always_quoting_style, "/")), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1010 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1011 ) ? (void) 0 : __builtin_unreachable ()))))
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1012 ;
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1013 }
executed 1 time by 1 test: end of block
Executed by:
  • chmod
1
1014 else-
1015 {-
1016 root_dev_ino = -
1017 ((void *)0)-
1018 ;-
1019 }
executed 762 times by 1 test: end of block
Executed by:
  • chmod
762
1020-
1021 ok = process_files (argv + optind,-
1022 0x0001 | 0x0010 | 0x0400);-
1023-
1024 return
executed 763 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • chmod
ok ?
executed 763 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • chmod
763
1025 0
executed 763 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • chmod
763
1026 :
executed 763 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • chmod
763
1027 1
executed 763 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • chmod
763
1028 ;
executed 763 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • chmod
763
1029}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2