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