| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/chown.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||
| 2 | - | |||||||||||||
| 3 | static char *reference_file; | - | ||||||||||||
| 4 | - | |||||||||||||
| 5 | - | |||||||||||||
| 6 | - | |||||||||||||
| 7 | enum | - | ||||||||||||
| 8 | { | - | ||||||||||||
| 9 | DEREFERENCE_OPTION = 0x7f + 1, | - | ||||||||||||
| 10 | FROM_OPTION, | - | ||||||||||||
| 11 | NO_PRESERVE_ROOT, | - | ||||||||||||
| 12 | PRESERVE_ROOT, | - | ||||||||||||
| 13 | REFERENCE_FILE_OPTION | - | ||||||||||||
| 14 | }; | - | ||||||||||||
| 15 | - | |||||||||||||
| 16 | static struct option const long_options[] = | - | ||||||||||||
| 17 | { | - | ||||||||||||
| 18 | {"recursive", | - | ||||||||||||
| 19 | 0 | - | ||||||||||||
| 20 | , | - | ||||||||||||
| 21 | ((void *)0) | - | ||||||||||||
| 22 | , 'R'}, | - | ||||||||||||
| 23 | {"changes", | - | ||||||||||||
| 24 | 0 | - | ||||||||||||
| 25 | , | - | ||||||||||||
| 26 | ((void *)0) | - | ||||||||||||
| 27 | , 'c'}, | - | ||||||||||||
| 28 | {"dereference", | - | ||||||||||||
| 29 | 0 | - | ||||||||||||
| 30 | , | - | ||||||||||||
| 31 | ((void *)0) | - | ||||||||||||
| 32 | , DEREFERENCE_OPTION}, | - | ||||||||||||
| 33 | {"from", | - | ||||||||||||
| 34 | 1 | - | ||||||||||||
| 35 | , | - | ||||||||||||
| 36 | ((void *)0) | - | ||||||||||||
| 37 | , FROM_OPTION}, | - | ||||||||||||
| 38 | {"no-dereference", | - | ||||||||||||
| 39 | 0 | - | ||||||||||||
| 40 | , | - | ||||||||||||
| 41 | ((void *)0) | - | ||||||||||||
| 42 | , 'h'}, | - | ||||||||||||
| 43 | {"no-preserve-root", | - | ||||||||||||
| 44 | 0 | - | ||||||||||||
| 45 | , | - | ||||||||||||
| 46 | ((void *)0) | - | ||||||||||||
| 47 | , NO_PRESERVE_ROOT}, | - | ||||||||||||
| 48 | {"preserve-root", | - | ||||||||||||
| 49 | 0 | - | ||||||||||||
| 50 | , | - | ||||||||||||
| 51 | ((void *)0) | - | ||||||||||||
| 52 | , PRESERVE_ROOT}, | - | ||||||||||||
| 53 | {"quiet", | - | ||||||||||||
| 54 | 0 | - | ||||||||||||
| 55 | , | - | ||||||||||||
| 56 | ((void *)0) | - | ||||||||||||
| 57 | , 'f'}, | - | ||||||||||||
| 58 | {"silent", | - | ||||||||||||
| 59 | 0 | - | ||||||||||||
| 60 | , | - | ||||||||||||
| 61 | ((void *)0) | - | ||||||||||||
| 62 | , 'f'}, | - | ||||||||||||
| 63 | {"reference", | - | ||||||||||||
| 64 | 1 | - | ||||||||||||
| 65 | , | - | ||||||||||||
| 66 | ((void *)0) | - | ||||||||||||
| 67 | , REFERENCE_FILE_OPTION}, | - | ||||||||||||
| 68 | {"verbose", | - | ||||||||||||
| 69 | 0 | - | ||||||||||||
| 70 | , | - | ||||||||||||
| 71 | ((void *)0) | - | ||||||||||||
| 72 | , 'v'}, | - | ||||||||||||
| 73 | {"help", | - | ||||||||||||
| 74 | 0 | - | ||||||||||||
| 75 | , | - | ||||||||||||
| 76 | ((void *)0) | - | ||||||||||||
| 77 | , GETOPT_HELP_CHAR}, | - | ||||||||||||
| 78 | {"version", | - | ||||||||||||
| 79 | 0 | - | ||||||||||||
| 80 | , | - | ||||||||||||
| 81 | ((void *)0) | - | ||||||||||||
| 82 | , GETOPT_VERSION_CHAR}, | - | ||||||||||||
| 83 | { | - | ||||||||||||
| 84 | ((void *)0) | - | ||||||||||||
| 85 | , 0, | - | ||||||||||||
| 86 | ((void *)0) | - | ||||||||||||
| 87 | , 0} | - | ||||||||||||
| 88 | }; | - | ||||||||||||
| 89 | - | |||||||||||||
| 90 | void | - | ||||||||||||
| 91 | usage (int status) | - | ||||||||||||
| 92 | { | - | ||||||||||||
| 93 | if (status !=
| 3-21 | ||||||||||||
| 94 | 0
| 3-21 | ||||||||||||
| 95 | ) | - | ||||||||||||
| 96 | do { fprintf ( | - | ||||||||||||
| 97 | stderr | - | ||||||||||||
| 98 | , | - | ||||||||||||
| 99 | dcgettext (((void *)0), | - | ||||||||||||
| 100 | "Try '%s --help' for more information.\n" | - | ||||||||||||
| 101 | , 5) | - | ||||||||||||
| 102 | , program_name); } executed 3 times by 1 test: while (0);end of blockExecuted by:
| 3 | ||||||||||||
| 103 | else | - | ||||||||||||
| 104 | { | - | ||||||||||||
| 105 | printf ( | - | ||||||||||||
| 106 | dcgettext (((void *)0), | - | ||||||||||||
| 107 | "Usage: %s [OPTION]... [OWNER][:[GROUP]] FILE...\n or: %s [OPTION]... --reference=RFILE FILE...\n" | - | ||||||||||||
| 108 | , 5) | - | ||||||||||||
| 109 | - | |||||||||||||
| 110 | - | |||||||||||||
| 111 | - | |||||||||||||
| 112 | , | - | ||||||||||||
| 113 | program_name, program_name); | - | ||||||||||||
| 114 | fputs_unlocked ( | - | ||||||||||||
| 115 | dcgettext (((void *)0), | - | ||||||||||||
| 116 | "Change the owner and/or group of each FILE to OWNER and/or GROUP.\nWith --reference, change the owner and group of each FILE to those of RFILE.\n\n" | - | ||||||||||||
| 117 | , 5) | - | ||||||||||||
| 118 | , | - | ||||||||||||
| 119 | stdout | - | ||||||||||||
| 120 | ) | - | ||||||||||||
| 121 | - | |||||||||||||
| 122 | - | |||||||||||||
| 123 | - | |||||||||||||
| 124 | ; | - | ||||||||||||
| 125 | fputs_unlocked ( | - | ||||||||||||
| 126 | dcgettext (((void *)0), | - | ||||||||||||
| 127 | " -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" | - | ||||||||||||
| 128 | , 5) | - | ||||||||||||
| 129 | , | - | ||||||||||||
| 130 | stdout | - | ||||||||||||
| 131 | ) | - | ||||||||||||
| 132 | - | |||||||||||||
| 133 | - | |||||||||||||
| 134 | - | |||||||||||||
| 135 | ; | - | ||||||||||||
| 136 | fputs_unlocked ( | - | ||||||||||||
| 137 | dcgettext (((void *)0), | - | ||||||||||||
| 138 | " --dereference affect the referent of each symbolic link (this is\n the default), rather than the symbolic link itself\n -h, --no-dereference affect symbolic links instead of any referenced file\n" | - | ||||||||||||
| 139 | , 5) | - | ||||||||||||
| 140 | , | - | ||||||||||||
| 141 | stdout | - | ||||||||||||
| 142 | ) | - | ||||||||||||
| 143 | - | |||||||||||||
| 144 | - | |||||||||||||
| 145 | - | |||||||||||||
| 146 | ; | - | ||||||||||||
| 147 | fputs_unlocked ( | - | ||||||||||||
| 148 | dcgettext (((void *)0), | - | ||||||||||||
| 149 | " (useful only on systems that can change the\n ownership of a symlink)\n" | - | ||||||||||||
| 150 | , 5) | - | ||||||||||||
| 151 | , | - | ||||||||||||
| 152 | stdout | - | ||||||||||||
| 153 | ) | - | ||||||||||||
| 154 | - | |||||||||||||
| 155 | - | |||||||||||||
| 156 | ; | - | ||||||||||||
| 157 | fputs_unlocked ( | - | ||||||||||||
| 158 | dcgettext (((void *)0), | - | ||||||||||||
| 159 | " --from=CURRENT_OWNER:CURRENT_GROUP\n change the owner and/or group of each file only if\n its current owner and/or group match those specified\n here. Either may be omitted, in which case a match\n is not required for the omitted attribute\n" | - | ||||||||||||
| 160 | , 5) | - | ||||||||||||
| 161 | , | - | ||||||||||||
| 162 | stdout | - | ||||||||||||
| 163 | ) | - | ||||||||||||
| 164 | - | |||||||||||||
| 165 | - | |||||||||||||
| 166 | - | |||||||||||||
| 167 | - | |||||||||||||
| 168 | - | |||||||||||||
| 169 | ; | - | ||||||||||||
| 170 | fputs_unlocked ( | - | ||||||||||||
| 171 | dcgettext (((void *)0), | - | ||||||||||||
| 172 | " --no-preserve-root do not treat '/' specially (the default)\n --preserve-root fail to operate recursively on '/'\n" | - | ||||||||||||
| 173 | , 5) | - | ||||||||||||
| 174 | , | - | ||||||||||||
| 175 | stdout | - | ||||||||||||
| 176 | ) | - | ||||||||||||
| 177 | - | |||||||||||||
| 178 | - | |||||||||||||
| 179 | ; | - | ||||||||||||
| 180 | fputs_unlocked ( | - | ||||||||||||
| 181 | dcgettext (((void *)0), | - | ||||||||||||
| 182 | " --reference=RFILE use RFILE's owner and group rather than\n specifying OWNER:GROUP values\n" | - | ||||||||||||
| 183 | , 5) | - | ||||||||||||
| 184 | , | - | ||||||||||||
| 185 | stdout | - | ||||||||||||
| 186 | ) | - | ||||||||||||
| 187 | - | |||||||||||||
| 188 | - | |||||||||||||
| 189 | ; | - | ||||||||||||
| 190 | fputs_unlocked ( | - | ||||||||||||
| 191 | dcgettext (((void *)0), | - | ||||||||||||
| 192 | " -R, --recursive operate on files and directories recursively\n" | - | ||||||||||||
| 193 | , 5) | - | ||||||||||||
| 194 | , | - | ||||||||||||
| 195 | stdout | - | ||||||||||||
| 196 | ) | - | ||||||||||||
| 197 | - | |||||||||||||
| 198 | ; | - | ||||||||||||
| 199 | fputs_unlocked ( | - | ||||||||||||
| 200 | dcgettext (((void *)0), | - | ||||||||||||
| 201 | "\nThe following options modify how a hierarchy is traversed when the -R\noption is also specified. If more than one is specified, only the final\none takes effect.\n\n -H if a command line argument is a symbolic link\n to a directory, traverse it\n -L traverse every symbolic link to a directory\n encountered\n -P do not traverse any symbolic links (default)\n\n" | - | ||||||||||||
| 202 | , 5) | - | ||||||||||||
| 203 | , | - | ||||||||||||
| 204 | stdout | - | ||||||||||||
| 205 | ) | - | ||||||||||||
| 206 | ; | - | ||||||||||||
| 207 | fputs_unlocked ( | - | ||||||||||||
| 208 | dcgettext (((void *)0), | - | ||||||||||||
| 209 | " --help display this help and exit\n" | - | ||||||||||||
| 210 | , 5) | - | ||||||||||||
| 211 | , | - | ||||||||||||
| 212 | stdout | - | ||||||||||||
| 213 | ); | - | ||||||||||||
| 214 | fputs_unlocked ( | - | ||||||||||||
| 215 | dcgettext (((void *)0), | - | ||||||||||||
| 216 | " --version output version information and exit\n" | - | ||||||||||||
| 217 | , 5) | - | ||||||||||||
| 218 | , | - | ||||||||||||
| 219 | stdout | - | ||||||||||||
| 220 | ); | - | ||||||||||||
| 221 | fputs_unlocked ( | - | ||||||||||||
| 222 | dcgettext (((void *)0), | - | ||||||||||||
| 223 | "\nOwner is unchanged if missing. Group is unchanged if missing, but changed\nto login group if implied by a ':' following a symbolic OWNER.\nOWNER and GROUP may be numeric as well as symbolic.\n" | - | ||||||||||||
| 224 | , 5) | - | ||||||||||||
| 225 | , | - | ||||||||||||
| 226 | stdout | - | ||||||||||||
| 227 | ) | - | ||||||||||||
| 228 | - | |||||||||||||
| 229 | - | |||||||||||||
| 230 | - | |||||||||||||
| 231 | - | |||||||||||||
| 232 | ; | - | ||||||||||||
| 233 | printf ( | - | ||||||||||||
| 234 | dcgettext (((void *)0), | - | ||||||||||||
| 235 | "\nExamples:\n %s root /u Change the owner of /u to \"root\".\n %s root:staff /u Likewise, but also change its group to \"staff\".\n %s -hR root /u Change the owner of /u and subfiles to \"root\".\n" | - | ||||||||||||
| 236 | , 5) | - | ||||||||||||
| 237 | - | |||||||||||||
| 238 | - | |||||||||||||
| 239 | - | |||||||||||||
| 240 | - | |||||||||||||
| 241 | - | |||||||||||||
| 242 | - | |||||||||||||
| 243 | , | - | ||||||||||||
| 244 | program_name, program_name, program_name); | - | ||||||||||||
| 245 | emit_ancillary_info ("chown"); | - | ||||||||||||
| 246 | } executed 21 times by 1 test: end of blockExecuted by:
| 21 | ||||||||||||
| 247 | exit (status); executed 24 times by 1 test: exit (status);Executed by:
| 24 | ||||||||||||
| 248 | } | - | ||||||||||||
| 249 | - | |||||||||||||
| 250 | int | - | ||||||||||||
| 251 | main (int argc, char **argv) | - | ||||||||||||
| 252 | { | - | ||||||||||||
| 253 | - | |||||||||||||
| 254 | _Bool | - | ||||||||||||
| 255 | preserve_root = | - | ||||||||||||
| 256 | 0 | - | ||||||||||||
| 257 | ; | - | ||||||||||||
| 258 | - | |||||||||||||
| 259 | uid_t uid = -1; | - | ||||||||||||
| 260 | gid_t gid = -1; | - | ||||||||||||
| 261 | - | |||||||||||||
| 262 | - | |||||||||||||
| 263 | - | |||||||||||||
| 264 | uid_t required_uid = -1; | - | ||||||||||||
| 265 | gid_t required_gid = -1; | - | ||||||||||||
| 266 | - | |||||||||||||
| 267 | - | |||||||||||||
| 268 | int bit_flags = 0x0010; | - | ||||||||||||
| 269 | - | |||||||||||||
| 270 | - | |||||||||||||
| 271 | - | |||||||||||||
| 272 | int dereference = -1; | - | ||||||||||||
| 273 | - | |||||||||||||
| 274 | struct Chown_option chopt; | - | ||||||||||||
| 275 | - | |||||||||||||
| 276 | _Bool | - | ||||||||||||
| 277 | ok; | - | ||||||||||||
| 278 | int optc; | - | ||||||||||||
| 279 | - | |||||||||||||
| 280 | ; | - | ||||||||||||
| 281 | set_program_name (argv[0]); | - | ||||||||||||
| 282 | setlocale ( | - | ||||||||||||
| 283 | 6 | - | ||||||||||||
| 284 | , ""); | - | ||||||||||||
| 285 | bindtextdomain ("coreutils", "/usr/local/share/locale"); | - | ||||||||||||
| 286 | textdomain ("coreutils"); | - | ||||||||||||
| 287 | - | |||||||||||||
| 288 | atexit (close_stdout); | - | ||||||||||||
| 289 | - | |||||||||||||
| 290 | chopt_init (&chopt); | - | ||||||||||||
| 291 | - | |||||||||||||
| 292 | while ((
| 29-69 | ||||||||||||
| 293 | ((void *)0)
| 29-69 | ||||||||||||
| 294 | ))
| 29-69 | ||||||||||||
| 295 | != -1
| 29-69 | ||||||||||||
| 296 | { | - | ||||||||||||
| 297 | switch (optc) | - | ||||||||||||
| 298 | { | - | ||||||||||||
| 299 | case executed 2 times by 1 test: 'H':case 'H':Executed by:
executed 2 times by 1 test: case 'H':Executed by:
| 2 | ||||||||||||
| 300 | bit_flags = 0x0001 | 0x0010; | - | ||||||||||||
| 301 | break; executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||
| 302 | - | |||||||||||||
| 303 | case executed 2 times by 1 test: 'L':case 'L':Executed by:
executed 2 times by 1 test: case 'L':Executed by:
| 2 | ||||||||||||
| 304 | bit_flags = 0x0002; | - | ||||||||||||
| 305 | break; executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||
| 306 | - | |||||||||||||
| 307 | case executed 1 time by 1 test: 'P':case 'P':Executed by:
executed 1 time by 1 test: case 'P':Executed by:
| 1 | ||||||||||||
| 308 | bit_flags = 0x0010; | - | ||||||||||||
| 309 | break; executed 1 time by 1 test: break;Executed by:
| 1 | ||||||||||||
| 310 | - | |||||||||||||
| 311 | case executed 4 times by 1 test: 'h':case 'h':Executed by:
executed 4 times by 1 test: case 'h':Executed by:
| 4 | ||||||||||||
| 312 | dereference = 0; | - | ||||||||||||
| 313 | break; executed 4 times by 1 test: break;Executed by:
| 4 | ||||||||||||
| 314 | - | |||||||||||||
| 315 | case executed 2 times by 1 test: DEREFERENCE_OPTION:case DEREFERENCE_OPTION:Executed by:
executed 2 times by 1 test: case DEREFERENCE_OPTION:Executed by:
| 2 | ||||||||||||
| 316 | - | |||||||||||||
| 317 | dereference = 1; | - | ||||||||||||
| 318 | break; executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||
| 319 | - | |||||||||||||
| 320 | case executed 1 time by 1 test: NO_PRESERVE_ROOT:case NO_PRESERVE_ROOT:Executed by:
executed 1 time by 1 test: case NO_PRESERVE_ROOT:Executed by:
| 1 | ||||||||||||
| 321 | preserve_root = | - | ||||||||||||
| 322 | 0 | - | ||||||||||||
| 323 | ; | - | ||||||||||||
| 324 | break; executed 1 time by 1 test: break;Executed by:
| 1 | ||||||||||||
| 325 | - | |||||||||||||
| 326 | case executed 4 times by 1 test: PRESERVE_ROOT:case PRESERVE_ROOT:Executed by:
executed 4 times by 1 test: case PRESERVE_ROOT:Executed by:
| 4 | ||||||||||||
| 327 | preserve_root = | - | ||||||||||||
| 328 | 1 | - | ||||||||||||
| 329 | ; | - | ||||||||||||
| 330 | break; executed 4 times by 1 test: break;Executed by:
| 4 | ||||||||||||
| 331 | - | |||||||||||||
| 332 | case executed 1 time by 1 test: REFERENCE_FILE_OPTION:case REFERENCE_FILE_OPTION:Executed by:
executed 1 time by 1 test: case REFERENCE_FILE_OPTION:Executed by:
| 1 | ||||||||||||
| 333 | reference_file = optarg; | - | ||||||||||||
| 334 | break; executed 1 time by 1 test: break;Executed by:
| 1 | ||||||||||||
| 335 | - | |||||||||||||
| 336 | case executed 6 times by 1 test: FROM_OPTION:case FROM_OPTION:Executed by:
executed 6 times by 1 test: case FROM_OPTION:Executed by:
| 6 | ||||||||||||
| 337 | { | - | ||||||||||||
| 338 | const char *e = parse_user_spec (optarg, | - | ||||||||||||
| 339 | &required_uid, &required_gid, | - | ||||||||||||
| 340 | - | |||||||||||||
| 341 | ((void *)0) | - | ||||||||||||
| 342 | , | - | ||||||||||||
| 343 | ((void *)0) | - | ||||||||||||
| 344 | ); | - | ||||||||||||
| 345 | if (e
| 1-5 | ||||||||||||
| 346 | (( executed 1 time by 1 test: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||
| 347 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||
| 348 | , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||
| 349 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||
| 350 | , 0, "%s: %s", e, quote (optarg)), (( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||
| 351 | 0 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||
| 352 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||
| 353 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||
| 354 | , 0, "%s: %s", e, quote (optarg)), (( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||
| 355 | 0 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||
| 356 | ) ? (void) 0 : __builtin_unreachable ())))); executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||
| 357 | break; executed 5 times by 1 test: break;Executed by:
| 5 | ||||||||||||
| 358 | } | - | ||||||||||||
| 359 | - | |||||||||||||
| 360 | case executed 5 times by 1 test: 'R':case 'R':Executed by:
executed 5 times by 1 test: case 'R':Executed by:
| 5 | ||||||||||||
| 361 | chopt.recurse = | - | ||||||||||||
| 362 | 1 | - | ||||||||||||
| 363 | ; | - | ||||||||||||
| 364 | break; executed 5 times by 1 test: break;Executed by:
| 5 | ||||||||||||
| 365 | - | |||||||||||||
| 366 | case executed 2 times by 1 test: 'c':case 'c':Executed by:
executed 2 times by 1 test: case 'c':Executed by:
| 2 | ||||||||||||
| 367 | chopt.verbosity = V_changes_only; | - | ||||||||||||
| 368 | break; executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||
| 369 | - | |||||||||||||
| 370 | case executed 4 times by 1 test: 'f':case 'f':Executed by:
executed 4 times by 1 test: case 'f':Executed by:
| 4 | ||||||||||||
| 371 | chopt.force_silent = | - | ||||||||||||
| 372 | 1 | - | ||||||||||||
| 373 | ; | - | ||||||||||||
| 374 | break; executed 4 times by 1 test: break;Executed by:
| 4 | ||||||||||||
| 375 | - | |||||||||||||
| 376 | case executed 2 times by 1 test: 'v':case 'v':Executed by:
executed 2 times by 1 test: case 'v':Executed by:
| 2 | ||||||||||||
| 377 | chopt.verbosity = V_high; | - | ||||||||||||
| 378 | break; executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||
| 379 | - | |||||||||||||
| 380 | case executed 21 times by 1 test: GETOPT_HELP_CHAR:case GETOPT_HELP_CHAR:Executed by:
executed 21 times by 1 test: usage (case GETOPT_HELP_CHAR:Executed by:
| 21 | ||||||||||||
| 381 | 0 | - | ||||||||||||
| 382 | ); break; never executed: ;break; | 0 | ||||||||||||
| 383 | case executed 9 times by 1 test: GETOPT_VERSION_CHAR:case GETOPT_VERSION_CHAR:Executed by:
executed 9 times by 1 test: version_etc (case GETOPT_VERSION_CHAR:Executed by:
| 9 | ||||||||||||
| 384 | stdout | - | ||||||||||||
| 385 | , "chown", "GNU coreutils", Version, ("David MacKenzie"), ("Jim Meyering"), (char *) | - | ||||||||||||
| 386 | ((void *)0) | - | ||||||||||||
| 387 | ); exit ( executed 9 times by 1 test: exit ( 0 );Executed by:
| 9 | ||||||||||||
| 388 | 0 executed 9 times by 1 test: exit ( 0 );Executed by:
| 9 | ||||||||||||
| 389 | ); executed 9 times by 1 test: break;exit ( 0 );Executed by:
never executed: ;break; | 0-9 | ||||||||||||
| 390 | default executed 3 times by 1 test: :default:Executed by:
executed 3 times by 1 test: default:Executed by:
| 3 | ||||||||||||
| 391 | usage ( | - | ||||||||||||
| 392 | 1 | - | ||||||||||||
| 393 | ); | - | ||||||||||||
| 394 | } never executed: end of block | 0 | ||||||||||||
| 395 | } | - | ||||||||||||
| 396 | - | |||||||||||||
| 397 | if (chopt.recurse
| 3-26 | ||||||||||||
| 398 | { | - | ||||||||||||
| 399 | if (bit_flags == 0x0010
| 1-2 | ||||||||||||
| 400 | { | - | ||||||||||||
| 401 | if (dereference == 1
| 0-1 | ||||||||||||
| 402 | (( never executed: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"-R --dereference requires either -H or -L\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"-R --dereference requires either -H or -L\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||
| 403 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"-R --dereference requires either -H or -L\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||
| 404 | , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"-R --dereference requires either -H or -L\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"-R --dereference requires either -H or -L\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||
| 405 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"-R --dereference requires either -H or -L\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||
| 406 | , 0, never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"-R --dereference requires either -H or -L\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||
| 407 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"-R --dereference requires either -H or -L\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||
| 408 | "-R --dereference requires either -H or -L" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"-R --dereference requires either -H or -L\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||
| 409 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"-R --dereference requires either -H or -L\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||
| 410 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"-R --dereference requires either -H or -L\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||
| 411 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"-R --dereference requires either -H or -L\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||
| 412 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"-R --dereference requires either -H or -L\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||
| 413 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"-R --dereference requires either -H or -L\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||
| 414 | , 0, never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"-R --dereference requires either -H or -L\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||
| 415 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"-R --dereference requires either -H or -L\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||
| 416 | "-R --dereference requires either -H or -L" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"-R --dereference requires either -H or -L\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||
| 417 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"-R --dereference requires either -H or -L\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||
| 418 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"-R --dereference requires either -H or -L\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||
| 419 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"-R --dereference requires either -H or -L\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||
| 420 | ) ? (void) 0 : __builtin_unreachable ())))) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"-R --dereference requires either -H or -L\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||
| 421 | ; never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"-R --dereference requires either -H or -L\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "-R --dereference requires either -H or -L" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||
| 422 | dereference = 0; | - | ||||||||||||
| 423 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||
| 424 | } executed 3 times by 1 test: end of blockExecuted by:
| 3 | ||||||||||||
| 425 | else | - | ||||||||||||
| 426 | { | - | ||||||||||||
| 427 | bit_flags = 0x0010; | - | ||||||||||||
| 428 | } executed 26 times by 1 test: end of blockExecuted by:
| 26 | ||||||||||||
| 429 | chopt.affect_symlink_referent = (dereference != 0); | - | ||||||||||||
| 430 | - | |||||||||||||
| 431 | if (argc - optind < (reference_file ? 1 : 2)
| 0-29 | ||||||||||||
| 432 | { | - | ||||||||||||
| 433 | if (argc <= optind
| 0 | ||||||||||||
| 434 | error (0, 0, never executed: error (0, 0, dcgettext (((void *)0), "missing operand" , 5) ); | 0 | ||||||||||||
| 435 | dcgettext (((void *)0), never executed: error (0, 0, dcgettext (((void *)0), "missing operand" , 5) ); | 0 | ||||||||||||
| 436 | "missing operand" never executed: error (0, 0, dcgettext (((void *)0), "missing operand" , 5) ); | 0 | ||||||||||||
| 437 | , 5) never executed: error (0, 0, dcgettext (((void *)0), "missing operand" , 5) ); | 0 | ||||||||||||
| 438 | ); never executed: error (0, 0, dcgettext (((void *)0), "missing operand" , 5) ); | 0 | ||||||||||||
| 439 | else | - | ||||||||||||
| 440 | error (0, 0, never executed: error (0, 0, dcgettext (((void *)0), "missing operand after %s" , 5) , quote (argv[argc - 1])); | 0 | ||||||||||||
| 441 | dcgettext (((void *)0), never executed: error (0, 0, dcgettext (((void *)0), "missing operand after %s" , 5) , quote (argv[argc - 1])); | 0 | ||||||||||||
| 442 | "missing operand after %s" never executed: error (0, 0, dcgettext (((void *)0), "missing operand after %s" , 5) , quote (argv[argc - 1])); | 0 | ||||||||||||
| 443 | , 5) never executed: error (0, 0, dcgettext (((void *)0), "missing operand after %s" , 5) , quote (argv[argc - 1])); | 0 | ||||||||||||
| 444 | , quote (argv[argc - 1])); never executed: error (0, 0, dcgettext (((void *)0), "missing operand after %s" , 5) , quote (argv[argc - 1])); | 0 | ||||||||||||
| 445 | usage ( | - | ||||||||||||
| 446 | 1 | - | ||||||||||||
| 447 | ); | - | ||||||||||||
| 448 | } never executed: end of block | 0 | ||||||||||||
| 449 | - | |||||||||||||
| 450 | if (reference_file
| 0-29 | ||||||||||||
| 451 | { | - | ||||||||||||
| 452 | struct stat ref_stats; | - | ||||||||||||
| 453 | if (stat (reference_file, &ref_stats)
| 0 | ||||||||||||
| 454 | (( never executed: !!sizeof (struct { _Static_assert (((!!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 ())))) ;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 | ||||||||||||
| 455 | 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 | ||||||||||||
| 456 | , "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 | ||||||||||||
| 457 | 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 | ||||||||||||
| 458 | , 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 | ||||||||||||
| 459 | (*__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 | ||||||||||||
| 460 | , 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 | ||||||||||||
| 461 | 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 | ||||||||||||
| 462 | "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 | ||||||||||||
| 463 | , 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 | ||||||||||||
| 464 | , 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 | ||||||||||||
| 465 | 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 | ||||||||||||
| 466 | ) ? (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 | ||||||||||||
| 467 | 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 | ||||||||||||
| 468 | , 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 | ||||||||||||
| 469 | (*__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 | ||||||||||||
| 470 | , 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 | ||||||||||||
| 471 | 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 | ||||||||||||
| 472 | "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 | ||||||||||||
| 473 | , 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 | ||||||||||||
| 474 | , 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 | ||||||||||||
| 475 | 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 | ||||||||||||
| 476 | ) ? (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 | ||||||||||||
| 477 | ; 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 | ||||||||||||
| 478 | - | |||||||||||||
| 479 | uid = ref_stats.st_uid; | - | ||||||||||||
| 480 | gid = ref_stats.st_gid; | - | ||||||||||||
| 481 | chopt.user_name = uid_to_name (ref_stats.st_uid); | - | ||||||||||||
| 482 | chopt.group_name = gid_to_name (ref_stats.st_gid); | - | ||||||||||||
| 483 | } never executed: end of block | 0 | ||||||||||||
| 484 | else | - | ||||||||||||
| 485 | { | - | ||||||||||||
| 486 | const char *e = parse_user_spec (argv[optind], &uid, &gid, | - | ||||||||||||
| 487 | &chopt.user_name, &chopt.group_name); | - | ||||||||||||
| 488 | if (e
| 2-27 | ||||||||||||
| 489 | (( executed 2 times by 1 test: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (argv[optind])), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (argv[optind])), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 2 | ||||||||||||
| 490 | 1 executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (argv[optind])), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 2 | ||||||||||||
| 491 | , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (argv[optind])), assume (false))" ")"); int _gl_dummy; })) ? ((error ( executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (argv[optind])), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 2 | ||||||||||||
| 492 | 1 executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (argv[optind])), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 2 | ||||||||||||
| 493 | , 0, "%s: %s", e, quote (argv[optind])), (( executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (argv[optind])), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 2 | ||||||||||||
| 494 | 0 executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (argv[optind])), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 2 | ||||||||||||
| 495 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (argv[optind])), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 2 | ||||||||||||
| 496 | 1 executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (argv[optind])), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 2 | ||||||||||||
| 497 | , 0, "%s: %s", e, quote (argv[optind])), (( executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (argv[optind])), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 2 | ||||||||||||
| 498 | 0 executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (argv[optind])), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 2 | ||||||||||||
| 499 | ) ? (void) 0 : __builtin_unreachable ())))); executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", e, quote (argv[optind])), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, "%s: %s", e, quote (argv[optind])), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 2 | ||||||||||||
| 500 | - | |||||||||||||
| 501 | - | |||||||||||||
| 502 | - | |||||||||||||
| 503 | - | |||||||||||||
| 504 | if (!chopt.user_name
| 3-15 | ||||||||||||
| 505 | chopt.user_name = bad_cast (""); executed 9 times by 1 test: chopt.user_name = bad_cast ("");Executed by:
| 9 | ||||||||||||
| 506 | - | |||||||||||||
| 507 | optind++; | - | ||||||||||||
| 508 | } executed 27 times by 1 test: end of blockExecuted by:
| 27 | ||||||||||||
| 509 | - | |||||||||||||
| 510 | if (chopt.recurse
| 0-24 | ||||||||||||
| 511 | { | - | ||||||||||||
| 512 | static struct dev_ino dev_ino_buf; | - | ||||||||||||
| 513 | chopt.root_dev_ino = get_root_dev_ino (&dev_ino_buf); | - | ||||||||||||
| 514 | if (chopt.root_dev_ino ==
| 0-3 | ||||||||||||
| 515 | ((void *)0)
| 0-3 | ||||||||||||
| 516 | ) | - | ||||||||||||
| 517 | (( never executed: !!sizeof (struct { _Static_assert (((!!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 ())))) ;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 | ||||||||||||
| 518 | 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 | ||||||||||||
| 519 | , "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 | ||||||||||||
| 520 | 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 | ||||||||||||
| 521 | , 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 | ||||||||||||
| 522 | (*__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 | ||||||||||||
| 523 | , 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 | ||||||||||||
| 524 | 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 | ||||||||||||
| 525 | "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 | ||||||||||||
| 526 | , 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 | ||||||||||||
| 527 | , 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 | ||||||||||||
| 528 | 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 | ||||||||||||
| 529 | ) ? (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 | ||||||||||||
| 530 | 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 | ||||||||||||
| 531 | , 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 | ||||||||||||
| 532 | (*__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 | ||||||||||||
| 533 | , 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 | ||||||||||||
| 534 | 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 | ||||||||||||
| 535 | "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 | ||||||||||||
| 536 | , 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 | ||||||||||||
| 537 | , 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 | ||||||||||||
| 538 | 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 | ||||||||||||
| 539 | ) ? (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 | ||||||||||||
| 540 | ; 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 | ||||||||||||
| 541 | } executed 3 times by 1 test: end of blockExecuted by:
| 3 | ||||||||||||
| 542 | - | |||||||||||||
| 543 | bit_flags |= 0x0400; | - | ||||||||||||
| 544 | ok = chown_files (argv + optind, bit_flags, | - | ||||||||||||
| 545 | uid, gid, | - | ||||||||||||
| 546 | required_uid, required_gid, &chopt); | - | ||||||||||||
| 547 | - | |||||||||||||
| 548 | chopt_free (&chopt); | - | ||||||||||||
| 549 | - | |||||||||||||
| 550 | return executed 27 times by 1 test: ok ? return ok ? 0 : 1 ;Executed by:
executed 27 times by 1 test: return ok ? 0 : 1 ;Executed by:
| 27 | ||||||||||||
| 551 | 0 executed 27 times by 1 test: return ok ? 0 : 1 ;Executed by:
| 27 | ||||||||||||
| 552 | : executed 27 times by 1 test: return ok ? 0 : 1 ;Executed by:
| 27 | ||||||||||||
| 553 | 1 executed 27 times by 1 test: return ok ? 0 : 1 ;Executed by:
| 27 | ||||||||||||
| 554 | ; executed 27 times by 1 test: return ok ? 0 : 1 ;Executed by:
| 27 | ||||||||||||
| 555 | } | - | ||||||||||||
| Switch to Source code | Preprocessed file |