OpenCoverage

chown-core.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/chown-core.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9enum RCH_status-
10 {-
11-
12 RC_ok = 2,-
13-
14-
15 RC_excluded,-
16-
17-
18 RC_inode_changed,-
19-
20-
21-
22 RC_do_ordinary_chown,-
23-
24-
25 RC_error-
26 };-
27-
28extern void-
29chopt_init (struct Chown_option *chopt)-
30{-
31 chopt->verbosity = V_off;-
32 chopt->root_dev_ino = -
33 ((void *)0)-
34 ;-
35 chopt->affect_symlink_referent = -
36 1-
37 ;-
38 chopt->recurse = -
39 0-
40 ;-
41 chopt->force_silent = -
42 0-
43 ;-
44 chopt->user_name = -
45 ((void *)0)-
46 ;-
47 chopt->group_name = -
48 ((void *)0)-
49 ;-
50}
executed 144 times by 2 tests: end of block
Executed by:
  • chgrp
  • chown
144
51-
52extern void-
53chopt_free (struct Chown_option *chopt __attribute__ ((__unused__)))-
54{-
55-
56-
57}-
58-
59-
60-
61-
62-
63extern char *-
64gid_to_name (gid_t gid)-
65{-
66 char buf[((((((sizeof (intmax_t) * 8) - (! ((__typeof__ (intmax_t)) 0 < (__typeof__ (intmax_t)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (intmax_t)) 0 < (__typeof__ (intmax_t)) -1))) + 1)];-
67 struct group *grp = getgrgid (gid);-
68 return
executed 1 time by 1 test: return xstrdup (grp ? grp->gr_name : (! ((gid_t) 0 < (gid_t) -1)) ? imaxtostr (gid, buf) : umaxtostr (gid, buf));
Executed by:
  • chgrp
xstrdup (grp ? grp->gr_name
executed 1 time by 1 test: return xstrdup (grp ? grp->gr_name : (! ((gid_t) 0 < (gid_t) -1)) ? imaxtostr (gid, buf) : umaxtostr (gid, buf));
Executed by:
  • chgrp
1
69 : (! ((gid_t) 0 < (gid_t) -1)) ? imaxtostr (gid, buf)
executed 1 time by 1 test: return xstrdup (grp ? grp->gr_name : (! ((gid_t) 0 < (gid_t) -1)) ? imaxtostr (gid, buf) : umaxtostr (gid, buf));
Executed by:
  • chgrp
1
70 : umaxtostr (gid, buf));
executed 1 time by 1 test: return xstrdup (grp ? grp->gr_name : (! ((gid_t) 0 < (gid_t) -1)) ? imaxtostr (gid, buf) : umaxtostr (gid, buf));
Executed by:
  • chgrp
1
71}-
72-
73-
74-
75-
76-
77extern char *-
78uid_to_name (uid_t uid)-
79{-
80 char buf[((((((sizeof (intmax_t) * 8) - (! ((__typeof__ (intmax_t)) 0 < (__typeof__ (intmax_t)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (intmax_t)) 0 < (__typeof__ (intmax_t)) -1))) + 1)];-
81 struct passwd *pwd = getpwuid (uid);-
82 return
never executed: return xstrdup (pwd ? pwd->pw_name : (! ((uid_t) 0 < (uid_t) -1)) ? imaxtostr (uid, buf) : umaxtostr (uid, buf));
xstrdup (pwd ? pwd->pw_name
never executed: return xstrdup (pwd ? pwd->pw_name : (! ((uid_t) 0 < (uid_t) -1)) ? imaxtostr (uid, buf) : umaxtostr (uid, buf));
0
83 : (! ((uid_t) 0 < (uid_t) -1)) ? imaxtostr (uid, buf)
never executed: return xstrdup (pwd ? pwd->pw_name : (! ((uid_t) 0 < (uid_t) -1)) ? imaxtostr (uid, buf) : umaxtostr (uid, buf));
0
84 : umaxtostr (uid, buf));
never executed: return xstrdup (pwd ? pwd->pw_name : (! ((uid_t) 0 < (uid_t) -1)) ? imaxtostr (uid, buf) : umaxtostr (uid, buf));
0
85}-
86-
87-
88-
89static char *-
90user_group_str (char const *user, char const *group)-
91{-
92 char *spec = -
93 ((void *)0)-
94 ;-
95-
96 if (user
userDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
97 {-
98 if (group
groupDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
99 {-
100 spec = xmalloc (strlen (user) + 1 + strlen (group) + 1);-
101 stpcpy (stpcpy (stpcpy (spec, user), ":"), group);-
102 }
never executed: end of block
0
103 else-
104 {-
105 spec = xstrdup (user);-
106 }
never executed: end of block
0
107 }-
108 else if (group
groupDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
109 {-
110 spec = xstrdup (group);-
111 }
never executed: end of block
0
112-
113 return
never executed: return spec;
spec;
never executed: return spec;
0
114}-
115-
116-
117-
118-
119-
120static void-
121describe_change (const char *file, enum Change_status changed,-
122 char const *old_user, char const *old_group,-
123 char const *user, char const *group)-
124{-
125 const char *fmt;-
126 char *old_spec;-
127 char *spec;-
128-
129 if (changed == CH_NOT_APPLIED
changed == CH_NOT_APPLIEDDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
130 {-
131 printf (-
132 dcgettext (((void *)0), -
133 "neither symbolic link %s nor referent has been changed\n"-
134 , 5)-
135 ,-
136 quotearg_style (shell_escape_always_quoting_style, file));-
137 return;
never executed: return;
0
138 }-
139-
140 spec = user_group_str (user, group);-
141 old_spec = user_group_str (user ? old_user : -
142 ((void *)0)-
143 , group ? old_group : -
144 ((void *)0)-
145 );-
146-
147 switch (changed)-
148 {-
149 case
never executed: case CH_SUCCEEDED:
CH_SUCCEEDED:
never executed: case CH_SUCCEEDED:
0
150 fmt = (user
userDescription
TRUEnever evaluated
FALSEnever evaluated
?
0
151 dcgettext (((void *)0), -
152 "changed ownership of %s from %s to %s\n"-
153 , 5)-
154 -
155 : group
groupDescription
TRUEnever evaluated
FALSEnever evaluated
?
0
156 dcgettext (((void *)0), -
157 "changed group of %s from %s to %s\n"-
158 , 5)-
159 -
160 : -
161 dcgettext (((void *)0), -
162 "no change to ownership of %s\n"-
163 , 5)-
164 );-
165 break;
never executed: break;
0
166 case
never executed: case CH_FAILED:
CH_FAILED:
never executed: case CH_FAILED:
0
167 if (old_spec
old_specDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
168 {-
169 fmt = (user
userDescription
TRUEnever evaluated
FALSEnever evaluated
?
0
170 dcgettext (((void *)0), -
171 "failed to change ownership of %s from %s to %s\n"-
172 , 5)-
173 -
174 : group
groupDescription
TRUEnever evaluated
FALSEnever evaluated
?
0
175 dcgettext (((void *)0), -
176 "failed to change group of %s from %s to %s\n"-
177 , 5)-
178 -
179 : -
180 dcgettext (((void *)0), -
181 "failed to change ownership of %s\n"-
182 , 5)-
183 );-
184 }
never executed: end of block
0
185 else-
186 {-
187 fmt = (user
userDescription
TRUEnever evaluated
FALSEnever evaluated
?
0
188 dcgettext (((void *)0), -
189 "failed to change ownership of %s to %s\n"-
190 , 5)-
191 -
192 : group
groupDescription
TRUEnever evaluated
FALSEnever evaluated
?
0
193 dcgettext (((void *)0), -
194 "failed to change group of %s to %s\n"-
195 , 5)-
196 -
197 : -
198 dcgettext (((void *)0), -
199 "failed to change ownership of %s\n"-
200 , 5)-
201 );-
202 free (old_spec);-
203 old_spec = spec;-
204 spec = -
205 ((void *)0)-
206 ;-
207 }
never executed: end of block
0
208 break;
never executed: break;
0
209 case
never executed: case CH_NO_CHANGE_REQUESTED:
CH_NO_CHANGE_REQUESTED:
never executed: case CH_NO_CHANGE_REQUESTED:
0
210 fmt = (user
userDescription
TRUEnever evaluated
FALSEnever evaluated
?
0
211 dcgettext (((void *)0), -
212 "ownership of %s retained as %s\n"-
213 , 5)-
214 -
215 : group
groupDescription
TRUEnever evaluated
FALSEnever evaluated
?
0
216 dcgettext (((void *)0), -
217 "group of %s retained as %s\n"-
218 , 5)-
219 -
220 : -
221 dcgettext (((void *)0), -
222 "ownership of %s retained\n"-
223 , 5)-
224 );-
225 break;
never executed: break;
0
226 default
never executed: default:
:
never executed: default:
0
227 abort ();
never executed: abort ();
0
228 }-
229-
230 printf (fmt, quotearg_style (shell_escape_always_quoting_style, file), old_spec, spec);-
231-
232 free (old_spec);-
233 free (spec);-
234}
never executed: end of block
0
235static enum RCH_status-
236restricted_chown (int cwd_fd, char const *file,-
237 struct stat const *orig_st,-
238 uid_t uid, gid_t gid,-
239 uid_t required_uid, gid_t required_gid)-
240{-
241 enum RCH_status status = RC_ok;-
242 struct stat st;-
243 int open_flags = -
244 04000 -
245 | -
246 0400-
247 ;-
248 int fd;-
249-
250 if (required_uid == (uid_t) -1
required_uid == (uid_t) -1Description
TRUEevaluated 60 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEnever evaluated
&& required_gid == (gid_t) -1
required_gid == (gid_t) -1Description
TRUEevaluated 55 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 5 times by 1 test
Evaluated by:
  • chown
)
0-60
251 return
executed 55 times by 2 tests: return RC_do_ordinary_chown;
Executed by:
  • chgrp
  • chown
RC_do_ordinary_chown;
executed 55 times by 2 tests: return RC_do_ordinary_chown;
Executed by:
  • chgrp
  • chown
55
252-
253 if (!
! (((( orig_st... == (0100000))Description
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • chown
0-5
254 ((((
! (((( orig_st... == (0100000))Description
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • chown
0-5
255 orig_st->st_mode
! (((( orig_st... == (0100000))Description
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • chown
0-5
256 )) & 0170000) == (0100000))
! (((( orig_st... == (0100000))Description
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • chown
0-5
257 )-
258 {-
259 if (-
260 ((((
(((( orig_st->... == (0040000))Description
TRUEnever evaluated
FALSEnever evaluated
0
261 orig_st->st_mode
(((( orig_st->... == (0040000))Description
TRUEnever evaluated
FALSEnever evaluated
0
262 )) & 0170000) == (0040000))
(((( orig_st->... == (0040000))Description
TRUEnever evaluated
FALSEnever evaluated
0
263 )-
264 open_flags |=
never executed: open_flags |= 0200000 ;
0
265 0200000
never executed: open_flags |= 0200000 ;
0
266 ;
never executed: open_flags |= 0200000 ;
0
267 else-
268 return
never executed: return RC_do_ordinary_chown;
RC_do_ordinary_chown;
never executed: return RC_do_ordinary_chown;
0
269 }-
270-
271 fd = openat (cwd_fd, file, -
272 00 -
273 | open_flags);-
274 if (! (0 <= fd
0 <= fdDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • chown
FALSEevaluated 2 times by 1 test
Evaluated by:
  • chown
2-3
275 || (-
276 (*
(*__errno_location ()) == 13Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • chown
FALSEnever evaluated
__errno_location ())
(*__errno_location ()) == 13Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • chown
FALSEnever evaluated
0-2
277 ==
(*__errno_location ()) == 13Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • chown
FALSEnever evaluated
0-2
278 13
(*__errno_location ()) == 13Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • chown
FALSEnever evaluated
0-2
279 && -
280 ((((
(((( orig_st->... == (0100000))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • chown
FALSEnever evaluated
0-2
281 orig_st->st_mode
(((( orig_st->... == (0100000))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • chown
FALSEnever evaluated
0-2
282 )) & 0170000) == (0100000))
(((( orig_st->... == (0100000))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • chown
FALSEnever evaluated
0-2
283 -
284 && 0 <= (fd = openat (cwd_fd, file,
0 <= (fd = ope...| open_flags))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chown
FALSEevaluated 1 time by 1 test
Evaluated by:
  • chown
1
285 01
0 <= (fd = ope...| open_flags))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chown
FALSEevaluated 1 time by 1 test
Evaluated by:
  • chown
1
286 | open_flags))
0 <= (fd = ope...| open_flags))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chown
FALSEevaluated 1 time by 1 test
Evaluated by:
  • chown
)))
1
287 return
executed 1 time by 1 test: return ( (*__errno_location ()) == 13 ? RC_do_ordinary_chown : RC_error);
Executed by:
  • chown
(
executed 1 time by 1 test: return ( (*__errno_location ()) == 13 ? RC_do_ordinary_chown : RC_error);
Executed by:
  • chown
1
288 (*__errno_location ())
executed 1 time by 1 test: return ( (*__errno_location ()) == 13 ? RC_do_ordinary_chown : RC_error);
Executed by:
  • chown
1
289 ==
executed 1 time by 1 test: return ( (*__errno_location ()) == 13 ? RC_do_ordinary_chown : RC_error);
Executed by:
  • chown
1
290 13
executed 1 time by 1 test: return ( (*__errno_location ()) == 13 ? RC_do_ordinary_chown : RC_error);
Executed by:
  • chown
1
291 ? RC_do_ordinary_chown : RC_error);
executed 1 time by 1 test: return ( (*__errno_location ()) == 13 ? RC_do_ordinary_chown : RC_error);
Executed by:
  • chown
1
292-
293 if (fstat (fd, &st) != 0
fstat (fd, &st) != 0Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • chown
)
0-4
294 status = RC_error;
never executed: status = RC_error;
0
295 else if (! ((*
(*orig_st).st_...== (st).st_inoDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • chown
FALSEnever evaluated
orig_st).st_ino == (st).st_ino
(*orig_st).st_...== (st).st_inoDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • chown
FALSEnever evaluated
&& (*
(*orig_st).st_...== (st).st_devDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • chown
FALSEnever evaluated
orig_st).st_dev == (st).st_dev
(*orig_st).st_...== (st).st_devDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • chown
FALSEnever evaluated
))
0-4
296 status = RC_inode_changed;
never executed: status = RC_inode_changed;
0
297 else if ((required_uid == (uid_t) -1
required_uid == (uid_t) -1Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • chown
FALSEnever evaluated
|| required_uid == st.st_uid
required_uid == st.st_uidDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-4
298 && (required_gid == (gid_t) -1
required_gid == (gid_t) -1Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • chown
|| required_gid == st.st_gid
required_gid == st.st_gidDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • chown
FALSEnever evaluated
))
0-4
299 {-
300 if (fchown (fd, uid, gid) == 0
fchown (fd, uid, gid) == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • chown
FALSEnever evaluated
)
0-4
301 {-
302 status = (close (fd) == 0
close (fd) == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • chown
FALSEnever evaluated
0-4
303 ? RC_ok : RC_error);-
304 return
executed 4 times by 1 test: return status;
Executed by:
  • chown
status;
executed 4 times by 1 test: return status;
Executed by:
  • chown
4
305 }-
306 else-
307 {-
308 status = RC_error;-
309 }
never executed: end of block
0
310 }-
311-
312 int saved_errno = -
313 (*__errno_location ())-
314 ;-
315 close (fd);-
316 -
317 (*__errno_location ()) -
318 = saved_errno;-
319 return
never executed: return status;
status;
never executed: return status;
0
320}-
321-
322-
323-
324-
325-
326-
327-
328static -
329 _Bool-
330-
331change_file_owner (FTS *fts, FTSENT *ent,-
332 uid_t uid, gid_t gid,-
333 uid_t required_uid, gid_t required_gid,-
334 struct Chown_option const *chopt)-
335{-
336 char const *file_full_name = ent->fts_path;-
337 char const *file = ent->fts_accpath;-
338 struct stat const *file_stats;-
339 struct stat stat_buf;-
340 -
341 _Bool -
342 ok = -
343 1-
344 ;-
345 -
346 _Bool -
347 do_chown;-
348 -
349 _Bool -
350 symlink_changed = -
351 1-
352 ;-
353-
354 switch (ent->fts_info)-
355 {-
356 case
executed 44 times by 2 tests: case 1:
Executed by:
  • chgrp
  • chown
1:
executed 44 times by 2 tests: case 1:
Executed by:
  • chgrp
  • chown
44
357 if (chopt->recurse
chopt->recurseDescription
TRUEevaluated 26 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 18 times by 2 tests
Evaluated by:
  • chgrp
  • chown
)
18-26
358 {-
359 if ((chopt->root_dev_ino
chopt->root_dev_inoDescription
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 16 times by 1 test
Evaluated by:
  • chgrp
&& ((*
(*ent->fts_sta...ev_ino).st_inoDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • chgrp
  • chown
ent->fts_statp).st_ino == (*chopt->root_dev_ino).st_ino
(*ent->fts_sta...ev_ino).st_inoDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • chgrp
  • chown
&& (*
(*ent->fts_sta...ev_ino).st_devDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEnever evaluated
ent->fts_statp).st_dev == (*chopt->root_dev_ino).st_dev
(*ent->fts_sta...ev_ino).st_devDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEnever evaluated
)))
0-16
360 {-
361-
362-
363 do { if ((
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
364 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
365 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
366 ) && __builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
367 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
368 ) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
369 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
370 ), __s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
371 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
372 ), (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
373 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
374 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
375 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
376 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
377 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
378 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
379 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
380 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
381 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
382 ,
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
383 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
384 ) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
385 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
386 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
387 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
388 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
389 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
390 ) == 1) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
391 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
392 ), __s1_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
393 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
394 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
395 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
396 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
397 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
398 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
399 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
400 ,
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
401 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
402 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
403 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
404 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
405 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
406 ))[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 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
0-2
407 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
408 ))[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 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
0-2
409 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
410 ))[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 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
0-2
411 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
never executed: __result = (((const unsigned char *) (const char *) ( file_full_name ))[3] - __s2[3]);
0-2
412 ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
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 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
0-2
413 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
414 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
415 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
416 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
417 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
418 ) == 1) && (__s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
419 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
420 ), __s2_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
421 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
422 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
423 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
424 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
425 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
426 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
427 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
428 ,
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
429 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
430 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
431 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
432 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
433 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
434 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
0-4
435 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
436 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
0-2
437 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
438 ))[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 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
0-2
439 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
never executed: __result = (((const unsigned char *) (const char *) ( "/" ))[3] - __s2[3]);
0-2
440 ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
never executed: __result = (((const unsigned char *) (const char *) ( "/" ))[3] - __s2[3]);
}
never executed: end of block
} __result; }))) : __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
0-2
441 file_full_name
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
442 ,
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
443 "/"
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
444 )))); })
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
2
445 == 0)
( __extension_...)))); }) == 0)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
) error (0, 0,
executed 2 times by 2 tests: 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:
  • chgrp
  • chown
2
446 dcgettext (((void *)0),
executed 2 times by 2 tests: 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:
  • chgrp
  • chown
2
447 "it is dangerous to operate recursively on %s"
executed 2 times by 2 tests: 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:
  • chgrp
  • chown
2
448 , 5)
executed 2 times by 2 tests: 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:
  • chgrp
  • chown
2
449 , quotearg_style (shell_escape_always_quoting_style, file_full_name));
executed 2 times by 2 tests: 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:
  • chgrp
  • chown
else error (0, 0,
executed 2 times by 2 tests: 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, "/"));
Executed by:
  • chgrp
  • chown
2
450 dcgettext (((void *)0),
executed 2 times by 2 tests: 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, "/"));
Executed by:
  • chgrp
  • chown
2
451 "it is dangerous to operate recursively on %s (same as %s)"
executed 2 times by 2 tests: 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, "/"));
Executed by:
  • chgrp
  • chown
2
452 , 5)
executed 2 times by 2 tests: 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, "/"));
Executed by:
  • chgrp
  • chown
2
453 , quotearg_n_style (0, shell_escape_always_quoting_style, file_full_name), quotearg_n_style (1, shell_escape_always_quoting_style, "/"));
executed 2 times by 2 tests: 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, "/"));
Executed by:
  • chgrp
  • chown
error (0, 0,
2
454 dcgettext (((void *)0), -
455 "use --no-preserve-root to override this failsafe"-
456 , 5)-
457 ); } while (0);-
458-
459 fts_set (fts, ent, 4);-
460-
461 (__extension__ ({ __typeof__ (fts_read (fts)) __x = (fts_read (fts)); (void) __x; }));-
462 return
executed 4 times by 2 tests: return 0 ;
Executed by:
  • chgrp
  • chown
executed 4 times by 2 tests: return 0 ;
Executed by:
  • chgrp
  • chown
4
463 0
executed 4 times by 2 tests: return 0 ;
Executed by:
  • chgrp
  • chown
4
464 ;
executed 4 times by 2 tests: return 0 ;
Executed by:
  • chgrp
  • chown
4
465 }-
466 return
executed 22 times by 2 tests: return 1 ;
Executed by:
  • chgrp
  • chown
executed 22 times by 2 tests: return 1 ;
Executed by:
  • chgrp
  • chown
22
467 1
executed 22 times by 2 tests: return 1 ;
Executed by:
  • chgrp
  • chown
22
468 ;
executed 22 times by 2 tests: return 1 ;
Executed by:
  • chgrp
  • chown
22
469 }-
470 break;
executed 18 times by 2 tests: break;
Executed by:
  • chgrp
  • chown
18
471-
472 case
executed 40 times by 2 tests: case 6:
Executed by:
  • chgrp
  • chown
6:
executed 40 times by 2 tests: case 6:
Executed by:
  • chgrp
  • chown
40
473 if (! chopt->recurse
! chopt->recurseDescription
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 22 times by 2 tests
Evaluated by:
  • chgrp
  • chown
)
18-22
474 return
executed 18 times by 2 tests: return 1 ;
Executed by:
  • chgrp
  • chown
executed 18 times by 2 tests: return 1 ;
Executed by:
  • chgrp
  • chown
18
475 1
executed 18 times by 2 tests: return 1 ;
Executed by:
  • chgrp
  • chown
18
476 ;
executed 18 times by 2 tests: return 1 ;
Executed by:
  • chgrp
  • chown
18
477 break;
executed 22 times by 2 tests: break;
Executed by:
  • chgrp
  • chown
22
478-
479 case
executed 5 times by 2 tests: case 10:
Executed by:
  • chgrp
  • chown
10:
executed 5 times by 2 tests: case 10:
Executed by:
  • chgrp
  • chown
5
480-
481-
482-
483-
484-
485-
486-
487 if (ent->fts_level == 0
ent->fts_level == 0Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 1 time by 1 test
Evaluated by:
  • chgrp
&& ent->fts_number == 0
ent->fts_number == 0Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
)
1-4
488 {-
489 ent->fts_number = 1;-
490 fts_set (fts, ent, 1);-
491 return
executed 2 times by 2 tests: return 1 ;
Executed by:
  • chgrp
  • chown
executed 2 times by 2 tests: return 1 ;
Executed by:
  • chgrp
  • chown
2
492 1
executed 2 times by 2 tests: return 1 ;
Executed by:
  • chgrp
  • chown
2
493 ;
executed 2 times by 2 tests: return 1 ;
Executed by:
  • chgrp
  • chown
2
494 }-
495 if (! chopt->force_silent
! chopt->force_silentDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chgrp
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • chgrp
  • chown
)
1-2
496 error (0, ent->fts_errno,
executed 1 time 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:
  • chgrp
1
497 dcgettext (((void *)0),
executed 1 time 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:
  • chgrp
1
498 "cannot access %s"
executed 1 time 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:
  • chgrp
1
499 , 5)
executed 1 time 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:
  • chgrp
1
500 ,
executed 1 time 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:
  • chgrp
1
501 quotearg_style (shell_escape_always_quoting_style, file_full_name));
executed 1 time 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:
  • chgrp
1
502 ok = -
503 0-
504 ;-
505 break;
executed 3 times by 2 tests: break;
Executed by:
  • chgrp
  • chown
3
506-
507 case
never executed: case 7:
7:
never executed: case 7:
0
508 if (! chopt->force_silent
! chopt->force_silentDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
509 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
510 ok = -
511 0-
512 ;-
513 break;
never executed: break;
0
514-
515 case
never executed: case 4:
4:
never executed: case 4:
0
516 if (! chopt->force_silent
! chopt->force_silentDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
517 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
518 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
519 "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
520 , 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
521 ,
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
522 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
523 ok = -
524 0-
525 ;-
526 break;
never executed: break;
0
527-
528 case
never executed: case 2:
2:
never executed: case 2:
0
529 if (cycle_warning_required (fts, ent)
cycle_warning_...red (fts, ent)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
530 {-
531 do { error (0, 0, -
532 dcgettext (((void *)0), -
533 "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"-
534 , 5)-
535 , quotearg_n_style_colon (0, shell_escape_quoting_style, file_full_name)); } while (0);-
536 return
never executed: return 0 ;
never executed: return 0 ;
0
537 0
never executed: return 0 ;
0
538 ;
never executed: return 0 ;
0
539 }-
540 break;
never executed: break;
0
541-
542 default
executed 59 times by 2 tests: default:
Executed by:
  • chgrp
  • chown
:
executed 59 times by 2 tests: default:
Executed by:
  • chgrp
  • chown
59
543 break;
executed 59 times by 2 tests: break;
Executed by:
  • chgrp
  • chown
59
544 }-
545-
546 if (!ok
!okDescription
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 99 times by 2 tests
Evaluated by:
  • chgrp
  • chown
)
3-99
547 {-
548 do_chown = -
549 0-
550 ;-
551 file_stats = -
552 ((void *)0)-
553 ;-
554 }
executed 3 times by 2 tests: end of block
Executed by:
  • chgrp
  • chown
3
555 else if (required_uid == (uid_t) -1
required_uid == (uid_t) -1Description
TRUEevaluated 99 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEnever evaluated
&& required_gid == (gid_t) -1
required_gid == (gid_t) -1Description
TRUEevaluated 94 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 5 times by 1 test
Evaluated by:
  • chown
0-99
556 && chopt->verbosity == V_off
chopt->verbosity == V_offDescription
TRUEevaluated 94 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEnever evaluated
0-94
557 && ! chopt->root_dev_ino
! chopt->root_dev_inoDescription
TRUEevaluated 83 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 11 times by 2 tests
Evaluated by:
  • chgrp
  • chown
11-83
558 && ! chopt->affect_symlink_referent
! chopt->affec...mlink_referentDescription
TRUEevaluated 32 times by 1 test
Evaluated by:
  • chgrp
FALSEevaluated 51 times by 2 tests
Evaluated by:
  • chgrp
  • chown
)
32-51
559 {-
560 do_chown = -
561 1-
562 ;-
563 file_stats = ent->fts_statp;-
564 }
executed 32 times by 1 test: end of block
Executed by:
  • chgrp
32
565 else-
566 {-
567 file_stats = ent->fts_statp;-
568-
569-
570-
571 if (chopt->affect_symlink_referent
chopt->affect_symlink_referentDescription
TRUEevaluated 61 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • chgrp
  • chown
&&
6-61
572 ((((
(((( file_stat... == (0120000))Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 55 times by 2 tests
Evaluated by:
  • chgrp
  • chown
6-55
573 file_stats->st_mode
(((( file_stat... == (0120000))Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 55 times by 2 tests
Evaluated by:
  • chgrp
  • chown
6-55
574 )) & 0170000) == (0120000))
(((( file_stat... == (0120000))Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 55 times by 2 tests
Evaluated by:
  • chgrp
  • chown
6-55
575 )-
576 {-
577 if (fstatat (fts->fts_cwd_fd, file, &stat_buf, 0) != 0
fstatat (fts->...t_buf, 0) != 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chown
FALSEevaluated 5 times by 1 test
Evaluated by:
  • chgrp
)
1-5
578 {-
579 if (! chopt->force_silent
! chopt->force_silentDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chown
FALSEnever evaluated
)
0-1
580 error (0,
executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "cannot dereference %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chown
1
581 (*__errno_location ())
executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "cannot dereference %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chown
1
582 ,
executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "cannot dereference %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chown
1
583 dcgettext (((void *)0),
executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "cannot dereference %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chown
1
584 "cannot dereference %s"
executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "cannot dereference %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chown
1
585 , 5)
executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "cannot dereference %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chown
1
586 ,
executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "cannot dereference %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chown
1
587 quotearg_style (shell_escape_always_quoting_style, file_full_name));
executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "cannot dereference %s" , 5) , quotearg_style (shell_escape_always_quoting_style, file_full_name));
Executed by:
  • chown
1
588 ok = -
589 0-
590 ;-
591 }
executed 1 time by 1 test: end of block
Executed by:
  • chown
1
592-
593 file_stats = &stat_buf;-
594 }
executed 6 times by 2 tests: end of block
Executed by:
  • chgrp
  • chown
6
595-
596 do_chown = (ok
okDescription
TRUEevaluated 66 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 1 time by 1 test
Evaluated by:
  • chown
1-66
597 && (required_uid == (uid_t) -1
required_uid == (uid_t) -1Description
TRUEevaluated 66 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEnever evaluated
0-66
598 || required_uid == file_stats->st_uid
required_uid =..._stats->st_uidDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
599 && (required_gid == (gid_t) -1
required_gid == (gid_t) -1Description
TRUEevaluated 61 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 5 times by 1 test
Evaluated by:
  • chown
5-61
600 || required_gid == file_stats->st_gid
required_gid =..._stats->st_gidDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • chown
FALSEnever evaluated
));
0-5
601 }
executed 67 times by 2 tests: end of block
Executed by:
  • chgrp
  • chown
67
602-
603-
604 if (ok
okDescription
TRUEevaluated 98 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • chgrp
  • chown
4-98
605 && ((
(ent)->fts_info == 1Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 80 times by 2 tests
Evaluated by:
  • chgrp
  • chown
ent)->fts_info == 1
(ent)->fts_info == 1Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 80 times by 2 tests
Evaluated by:
  • chgrp
  • chown
|| (
(ent)->fts_info == 2Description
TRUEnever evaluated
FALSEevaluated 80 times by 2 tests
Evaluated by:
  • chgrp
  • chown
ent)->fts_info == 2
(ent)->fts_info == 2Description
TRUEnever evaluated
FALSEevaluated 80 times by 2 tests
Evaluated by:
  • chgrp
  • chown
|| (
(ent)->fts_info == 6Description
TRUEevaluated 22 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 58 times by 2 tests
Evaluated by:
  • chgrp
  • chown
ent)->fts_info == 6
(ent)->fts_info == 6Description
TRUEevaluated 22 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 58 times by 2 tests
Evaluated by:
  • chgrp
  • chown
|| (
(ent)->fts_info == 4Description
TRUEnever evaluated
FALSEevaluated 58 times by 2 tests
Evaluated by:
  • chgrp
  • chown
ent)->fts_info == 4
(ent)->fts_info == 4Description
TRUEnever evaluated
FALSEevaluated 58 times by 2 tests
Evaluated by:
  • chgrp
  • chown
)
0-80
606 && (chopt->root_dev_ino
chopt->root_dev_inoDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 34 times by 2 tests
Evaluated by:
  • chgrp
  • chown
&& ((*
(*file_stats)....ev_ino).st_inoDescription
TRUEnever evaluated
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • chgrp
  • chown
file_stats).st_ino == (*chopt->root_dev_ino).st_ino
(*file_stats)....ev_ino).st_inoDescription
TRUEnever evaluated
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • chgrp
  • chown
&& (*
(*file_stats)....ev_ino).st_devDescription
TRUEnever evaluated
FALSEnever evaluated
file_stats).st_dev == (*chopt->root_dev_ino).st_dev
(*file_stats)....ev_ino).st_devDescription
TRUEnever evaluated
FALSEnever evaluated
)))
0-34
607 {-
608 do { if ((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
609 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
610 file_full_name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
611 ) && __builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
612 "/"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
613 ) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
614 file_full_name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
615 ), __s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
616 "/"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
617 ), (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
618 file_full_name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
619 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
620 file_full_name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
621 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
622 "/"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
623 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
624 "/"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
625 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
626 file_full_name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
627 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
628 "/"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
629 ) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
630 file_full_name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
631 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
632 file_full_name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
633 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
634 file_full_name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
635 ) == 1) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
636 file_full_name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
637 ), __s1_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
638 "/"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
639 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
640 "/"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
641 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
642 "/"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
643 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
644 file_full_name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
645 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
646 "/"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
647 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
648 "/"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
649 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
650 file_full_name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
651 ))[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
652 file_full_name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
653 ))[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
654 file_full_name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
655 ))[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]);
0
656 file_full_name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( file_full_name ))[3] - __s2[3]);
0
657 ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
658 "/"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
659 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
660 "/"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
661 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
662 "/"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
663 ) == 1) && (__s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
664 "/"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
665 ), __s2_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
666 file_full_name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
667 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
668 file_full_name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
669 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
670 file_full_name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
671 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
672 file_full_name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
673 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
674 "/"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
675 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
676 file_full_name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
677 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
678 "/"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
679 ))[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
680 "/"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
681 ))[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
682 "/"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
683 ))[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]);
0
684 "/"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( "/" ))[3] - __s2[3]);
0
685 ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
686 file_full_name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
687 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
688 "/"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
689 )))); })
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
690 == 0)
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
) error (0, 0,
never executed: 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));
0
691 dcgettext (((void *)0),
never executed: 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));
0
692 "it is dangerous to operate recursively on %s"
never executed: 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));
0
693 , 5)
never executed: 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));
0
694 , quotearg_style (shell_escape_always_quoting_style, file_full_name));
never executed: 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));
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
695 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
696 "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
697 , 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
698 , 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
699 dcgettext (((void *)0), -
700 "use --no-preserve-root to override this failsafe"-
701 , 5)-
702 ); } while (0);-
703 return
never executed: return 0 ;
never executed: return 0 ;
0
704 0
never executed: return 0 ;
0
705 ;
never executed: return 0 ;
0
706 }-
707-
708 if (do_chown
do_chownDescription
TRUEevaluated 98 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • chgrp
  • chown
)
4-98
709 {-
710 if ( ! chopt->affect_symlink_referent
! chopt->affec...mlink_referentDescription
TRUEevaluated 38 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 60 times by 2 tests
Evaluated by:
  • chgrp
  • chown
)
38-60
711 {-
712 ok = (lchownat (fts->fts_cwd_fd, file, uid, gid) == 0);-
713-
714-
715-
716-
717 if (!ok
!okDescription
TRUEnever evaluated
FALSEevaluated 38 times by 2 tests
Evaluated by:
  • chgrp
  • chown
&&
0-38
718 (*
(*__errno_location ()) == 95Description
TRUEnever evaluated
FALSEnever evaluated
__errno_location ())
(*__errno_location ()) == 95Description
TRUEnever evaluated
FALSEnever evaluated
0
719 ==
(*__errno_location ()) == 95Description
TRUEnever evaluated
FALSEnever evaluated
0
720 95
(*__errno_location ()) == 95Description
TRUEnever evaluated
FALSEnever evaluated
0
721 )-
722 {-
723 ok = -
724 1-
725 ;-
726 symlink_changed = -
727 0-
728 ;-
729 }
never executed: end of block
0
730 }
executed 38 times by 2 tests: end of block
Executed by:
  • chgrp
  • chown
38
731 else-
732 {-
733 enum RCH_status err-
734 = restricted_chown (fts->fts_cwd_fd, file, file_stats, uid, gid,-
735 required_uid, required_gid);-
736 switch (err)-
737 {-
738 case
executed 4 times by 1 test: case RC_ok:
Executed by:
  • chown
RC_ok:
executed 4 times by 1 test: case RC_ok:
Executed by:
  • chown
4
739 break;
executed 4 times by 1 test: break;
Executed by:
  • chown
4
740-
741 case
executed 56 times by 2 tests: case RC_do_ordinary_chown:
Executed by:
  • chgrp
  • chown
RC_do_ordinary_chown:
executed 56 times by 2 tests: case RC_do_ordinary_chown:
Executed by:
  • chgrp
  • chown
56
742 ok = (chownat (fts->fts_cwd_fd, file, uid, gid) == 0);-
743 break;
executed 56 times by 2 tests: break;
Executed by:
  • chgrp
  • chown
56
744-
745 case
never executed: case RC_error:
RC_error:
never executed: case RC_error:
0
746 ok = -
747 0-
748 ;-
749 break;
never executed: break;
0
750-
751 case
never executed: case RC_inode_changed:
RC_inode_changed:
never executed: case RC_inode_changed:
0
752-
753 case
never executed: case RC_excluded:
RC_excluded:
never executed: case RC_excluded:
0
754 do_chown = -
755 0-
756 ;-
757 ok = -
758 0-
759 ;-
760 break;
never executed: break;
0
761-
762 default
never executed: default:
:
never executed: default:
0
763 abort ();
never executed: abort ();
0
764 }-
765 }-
766 if (do_chown
do_chownDescription
TRUEevaluated 98 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEnever evaluated
&& !ok
!okDescription
TRUEnever evaluated
FALSEevaluated 98 times by 2 tests
Evaluated by:
  • chgrp
  • chown
&& ! chopt->force_silent
! chopt->force_silentDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-98
767 error (0,
never executed: error (0, (*__errno_location ()) , (uid != (uid_t) -1 ? dcgettext (((void *)0), "changing ownership of %s" , 5) : dcgettext (((void *)0), "changing group of %s" , 5) ), quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
768 (*__errno_location ())
never executed: error (0, (*__errno_location ()) , (uid != (uid_t) -1 ? dcgettext (((void *)0), "changing ownership of %s" , 5) : dcgettext (((void *)0), "changing group of %s" , 5) ), quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
769 , (uid != (uid_t) -1
never executed: error (0, (*__errno_location ()) , (uid != (uid_t) -1 ? dcgettext (((void *)0), "changing ownership of %s" , 5) : dcgettext (((void *)0), "changing group of %s" , 5) ), quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
770 ?
never executed: error (0, (*__errno_location ()) , (uid != (uid_t) -1 ? dcgettext (((void *)0), "changing ownership of %s" , 5) : dcgettext (((void *)0), "changing group of %s" , 5) ), quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
771 dcgettext (((void *)0),
never executed: error (0, (*__errno_location ()) , (uid != (uid_t) -1 ? dcgettext (((void *)0), "changing ownership of %s" , 5) : dcgettext (((void *)0), "changing group of %s" , 5) ), quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
772 "changing ownership of %s"
never executed: error (0, (*__errno_location ()) , (uid != (uid_t) -1 ? dcgettext (((void *)0), "changing ownership of %s" , 5) : dcgettext (((void *)0), "changing group of %s" , 5) ), quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
773 , 5)
never executed: error (0, (*__errno_location ()) , (uid != (uid_t) -1 ? dcgettext (((void *)0), "changing ownership of %s" , 5) : dcgettext (((void *)0), "changing group of %s" , 5) ), quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
774
never executed: error (0, (*__errno_location ()) , (uid != (uid_t) -1 ? dcgettext (((void *)0), "changing ownership of %s" , 5) : dcgettext (((void *)0), "changing group of %s" , 5) ), quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
775 :
never executed: error (0, (*__errno_location ()) , (uid != (uid_t) -1 ? dcgettext (((void *)0), "changing ownership of %s" , 5) : dcgettext (((void *)0), "changing group of %s" , 5) ), quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
776 dcgettext (((void *)0),
never executed: error (0, (*__errno_location ()) , (uid != (uid_t) -1 ? dcgettext (((void *)0), "changing ownership of %s" , 5) : dcgettext (((void *)0), "changing group of %s" , 5) ), quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
777 "changing group of %s"
never executed: error (0, (*__errno_location ()) , (uid != (uid_t) -1 ? dcgettext (((void *)0), "changing ownership of %s" , 5) : dcgettext (((void *)0), "changing group of %s" , 5) ), quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
778 , 5)
never executed: error (0, (*__errno_location ()) , (uid != (uid_t) -1 ? dcgettext (((void *)0), "changing ownership of %s" , 5) : dcgettext (((void *)0), "changing group of %s" , 5) ), quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
779 ),
never executed: error (0, (*__errno_location ()) , (uid != (uid_t) -1 ? dcgettext (((void *)0), "changing ownership of %s" , 5) : dcgettext (((void *)0), "changing group of %s" , 5) ), quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
780 quotearg_style (shell_escape_always_quoting_style, file_full_name));
never executed: error (0, (*__errno_location ()) , (uid != (uid_t) -1 ? dcgettext (((void *)0), "changing ownership of %s" , 5) : dcgettext (((void *)0), "changing group of %s" , 5) ), quotearg_style (shell_escape_always_quoting_style, file_full_name));
0
781 }
executed 98 times by 2 tests: end of block
Executed by:
  • chgrp
  • chown
98
782-
783 if (chopt->verbosity != V_off
chopt->verbosity != V_offDescription
TRUEnever evaluated
FALSEevaluated 102 times by 2 tests
Evaluated by:
  • chgrp
  • chown
)
0-102
784 {-
785 -
786 _Bool -
787 changed =-
788 ((do_chown
do_chownDescription
TRUEnever evaluated
FALSEnever evaluated
&& ok
okDescription
TRUEnever evaluated
FALSEnever evaluated
&& symlink_changed
symlink_changedDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
789 && ! ((uid == (uid_t) -1
uid == (uid_t) -1Description
TRUEnever evaluated
FALSEnever evaluated
|| uid == file_stats->st_uid
uid == file_stats->st_uidDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
790 && (gid == (gid_t) -1
gid == (gid_t) -1Description
TRUEnever evaluated
FALSEnever evaluated
|| gid == file_stats->st_gid
gid == file_stats->st_gidDescription
TRUEnever evaluated
FALSEnever evaluated
)));
0
791-
792 if (changed
changedDescription
TRUEnever evaluated
FALSEnever evaluated
|| chopt->verbosity == V_high
chopt->verbosity == V_highDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
793 {-
794 enum Change_status ch_status =-
795 (!ok
!okDescription
TRUEnever evaluated
FALSEnever evaluated
? CH_FAILED
0
796 : !symlink_changed
!symlink_changedDescription
TRUEnever evaluated
FALSEnever evaluated
? CH_NOT_APPLIED
0
797 : !changed
!changedDescription
TRUEnever evaluated
FALSEnever evaluated
? CH_NO_CHANGE_REQUESTED
0
798 : CH_SUCCEEDED);-
799 char *old_usr = file_stats
file_statsDescription
TRUEnever evaluated
FALSEnever evaluated
? uid_to_name (file_stats->st_uid) :
0
800 ((void *)0)-
801 ;-
802 char *old_grp = file_stats
file_statsDescription
TRUEnever evaluated
FALSEnever evaluated
? gid_to_name (file_stats->st_gid) :
0
803 ((void *)0)-
804 ;-
805 describe_change (file_full_name, ch_status,-
806 old_usr, old_grp,-
807 chopt->user_name, chopt->group_name);-
808 free (old_usr);-
809 free (old_grp);-
810 }
never executed: end of block
0
811 }
never executed: end of block
0
812-
813 if ( ! chopt->recurse
! chopt->recurseDescription
TRUEevaluated 54 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 48 times by 2 tests
Evaluated by:
  • chgrp
  • chown
)
48-54
814 fts_set (fts, ent, 4);
executed 54 times by 2 tests: fts_set (fts, ent, 4);
Executed by:
  • chgrp
  • chown
54
815-
816 return
executed 102 times by 2 tests: return ok;
Executed by:
  • chgrp
  • chown
ok;
executed 102 times by 2 tests: return ok;
Executed by:
  • chgrp
  • chown
102
817}-
818extern -
819 _Bool-
820-
821chown_files (char **files, int bit_flags,-
822 uid_t uid, gid_t gid,-
823 uid_t required_uid, gid_t required_gid,-
824 struct Chown_option const *chopt)-
825{-
826 -
827 _Bool -
828 ok = -
829 1-
830 ;-
831-
832-
833 int stat_flags = ((required_uid != (uid_t) -1
required_uid != (uid_t) -1Description
TRUEnever evaluated
FALSEevaluated 73 times by 2 tests
Evaluated by:
  • chgrp
  • chown
|| required_gid != (gid_t) -1
required_gid != (gid_t) -1Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • chown
FALSEevaluated 68 times by 2 tests
Evaluated by:
  • chgrp
  • chown
0-73
834 || chopt->affect_symlink_referent
chopt->affect_symlink_referentDescription
TRUEevaluated 46 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 22 times by 2 tests
Evaluated by:
  • chgrp
  • chown
22-46
835 || chopt->verbosity != V_off
chopt->verbosity != V_offDescription
TRUEnever evaluated
FALSEevaluated 22 times by 2 tests
Evaluated by:
  • chgrp
  • chown
)
0-22
836 ? 0-
837 : 0x0008);-
838-
839 FTS *fts = xfts_open (files, bit_flags | stat_flags, -
840 ((void *)0)-
841 );-
842-
843 while (1)-
844 {-
845 FTSENT *ent;-
846-
847 ent = fts_read (fts);-
848 if (ent ==
ent == ((void *)0)Description
TRUEevaluated 73 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 148 times by 2 tests
Evaluated by:
  • chgrp
  • chown
73-148
849 ((void *)0)
ent == ((void *)0)Description
TRUEevaluated 73 times by 2 tests
Evaluated by:
  • chgrp
  • chown
FALSEevaluated 148 times by 2 tests
Evaluated by:
  • chgrp
  • chown
73-148
850 )-
851 {-
852 if (-
853 (*
(*__errno_location ()) != 0Description
TRUEnever evaluated
FALSEevaluated 73 times by 2 tests
Evaluated by:
  • chgrp
  • chown
__errno_location ())
(*__errno_location ()) != 0Description
TRUEnever evaluated
FALSEevaluated 73 times by 2 tests
Evaluated by:
  • chgrp
  • chown
0-73
854 != 0
(*__errno_location ()) != 0Description
TRUEnever evaluated
FALSEevaluated 73 times by 2 tests
Evaluated by:
  • chgrp
  • chown
)
0-73
855 {-
856-
857 if (! chopt->force_silent
! chopt->force_silentDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
858 error (0,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "fts_read failed" , 5) );
0
859 (*__errno_location ())
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "fts_read failed" , 5) );
0
860 ,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "fts_read failed" , 5) );
0
861 dcgettext (((void *)0),
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "fts_read failed" , 5) );
0
862 "fts_read failed"
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "fts_read failed" , 5) );
0
863 , 5)
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "fts_read failed" , 5) );
0
864 );
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "fts_read failed" , 5) );
0
865 ok = -
866 0-
867 ;-
868 }
never executed: end of block
0
869 break;
executed 73 times by 2 tests: break;
Executed by:
  • chgrp
  • chown
73
870 }-
871-
872 ok &= change_file_owner (fts, ent, uid, gid,-
873 required_uid, required_gid, chopt);-
874 }
executed 148 times by 2 tests: end of block
Executed by:
  • chgrp
  • chown
148
875-
876 if (fts_close (fts) != 0
fts_close (fts) != 0Description
TRUEnever evaluated
FALSEevaluated 73 times by 2 tests
Evaluated by:
  • chgrp
  • chown
)
0-73
877 {-
878 error (0, -
879 (*__errno_location ())-
880 , -
881 dcgettext (((void *)0), -
882 "fts_close failed"-
883 , 5)-
884 );-
885 ok = -
886 0-
887 ;-
888 }
never executed: end of block
0
889-
890 return
executed 73 times by 2 tests: return ok;
Executed by:
  • chgrp
  • chown
ok;
executed 73 times by 2 tests: return ok;
Executed by:
  • chgrp
  • chown
73
891}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2