Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/mktemp.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||||||||
2 | - | |||||||||||||||||||
3 | - | |||||||||||||||||||
4 | static const char *default_template = "tmp.XXXXXXXXXX"; | - | ||||||||||||||||||
5 | - | |||||||||||||||||||
6 | - | |||||||||||||||||||
7 | - | |||||||||||||||||||
8 | enum | - | ||||||||||||||||||
9 | { | - | ||||||||||||||||||
10 | SUFFIX_OPTION = 0x7f + 1, | - | ||||||||||||||||||
11 | }; | - | ||||||||||||||||||
12 | - | |||||||||||||||||||
13 | static struct option const longopts[] = | - | ||||||||||||||||||
14 | { | - | ||||||||||||||||||
15 | {"directory", | - | ||||||||||||||||||
16 | 0 | - | ||||||||||||||||||
17 | , | - | ||||||||||||||||||
18 | ((void *)0) | - | ||||||||||||||||||
19 | , 'd'}, | - | ||||||||||||||||||
20 | {"quiet", | - | ||||||||||||||||||
21 | 0 | - | ||||||||||||||||||
22 | , | - | ||||||||||||||||||
23 | ((void *)0) | - | ||||||||||||||||||
24 | , 'q'}, | - | ||||||||||||||||||
25 | {"dry-run", | - | ||||||||||||||||||
26 | 0 | - | ||||||||||||||||||
27 | , | - | ||||||||||||||||||
28 | ((void *)0) | - | ||||||||||||||||||
29 | , 'u'}, | - | ||||||||||||||||||
30 | {"suffix", | - | ||||||||||||||||||
31 | 1 | - | ||||||||||||||||||
32 | , | - | ||||||||||||||||||
33 | ((void *)0) | - | ||||||||||||||||||
34 | , SUFFIX_OPTION}, | - | ||||||||||||||||||
35 | {"tmpdir", | - | ||||||||||||||||||
36 | 2 | - | ||||||||||||||||||
37 | , | - | ||||||||||||||||||
38 | ((void *)0) | - | ||||||||||||||||||
39 | , 'p'}, | - | ||||||||||||||||||
40 | {"help", | - | ||||||||||||||||||
41 | 0 | - | ||||||||||||||||||
42 | , | - | ||||||||||||||||||
43 | ((void *)0) | - | ||||||||||||||||||
44 | , GETOPT_HELP_CHAR}, | - | ||||||||||||||||||
45 | {"version", | - | ||||||||||||||||||
46 | 0 | - | ||||||||||||||||||
47 | , | - | ||||||||||||||||||
48 | ((void *)0) | - | ||||||||||||||||||
49 | , GETOPT_VERSION_CHAR}, | - | ||||||||||||||||||
50 | { | - | ||||||||||||||||||
51 | ((void *)0) | - | ||||||||||||||||||
52 | , 0, | - | ||||||||||||||||||
53 | ((void *)0) | - | ||||||||||||||||||
54 | , 0} | - | ||||||||||||||||||
55 | }; | - | ||||||||||||||||||
56 | - | |||||||||||||||||||
57 | void | - | ||||||||||||||||||
58 | usage (int status) | - | ||||||||||||||||||
59 | { | - | ||||||||||||||||||
60 | if (status !=
| 5-13 | ||||||||||||||||||
61 | 0
| 5-13 | ||||||||||||||||||
62 | ) | - | ||||||||||||||||||
63 | do { fprintf ( | - | ||||||||||||||||||
64 | stderr | - | ||||||||||||||||||
65 | , | - | ||||||||||||||||||
66 | dcgettext (((void *)0), | - | ||||||||||||||||||
67 | "Try '%s --help' for more information.\n" | - | ||||||||||||||||||
68 | , 5) | - | ||||||||||||||||||
69 | , program_name); } executed 5 times by 1 test: while (0);end of block Executed by:
| 5 | ||||||||||||||||||
70 | else | - | ||||||||||||||||||
71 | { | - | ||||||||||||||||||
72 | printf ( | - | ||||||||||||||||||
73 | dcgettext (((void *)0), | - | ||||||||||||||||||
74 | "Usage: %s [OPTION]... [TEMPLATE]\n" | - | ||||||||||||||||||
75 | , 5) | - | ||||||||||||||||||
76 | , program_name); | - | ||||||||||||||||||
77 | fputs_unlocked ( | - | ||||||||||||||||||
78 | dcgettext (((void *)0), | - | ||||||||||||||||||
79 | "Create a temporary file or directory, safely, and print its name.\nTEMPLATE must contain at least 3 consecutive 'X's in last component.\nIf TEMPLATE is not specified, use tmp.XXXXXXXXXX, and --tmpdir is implied.\n" | - | ||||||||||||||||||
80 | , 5) | - | ||||||||||||||||||
81 | , | - | ||||||||||||||||||
82 | stdout | - | ||||||||||||||||||
83 | ) | - | ||||||||||||||||||
84 | - | |||||||||||||||||||
85 | - | |||||||||||||||||||
86 | - | |||||||||||||||||||
87 | ; | - | ||||||||||||||||||
88 | fputs_unlocked ( | - | ||||||||||||||||||
89 | dcgettext (((void *)0), | - | ||||||||||||||||||
90 | "Files are created u+rw, and directories u+rwx, minus umask restrictions.\n" | - | ||||||||||||||||||
91 | , 5) | - | ||||||||||||||||||
92 | , | - | ||||||||||||||||||
93 | stdout | - | ||||||||||||||||||
94 | ) | - | ||||||||||||||||||
95 | - | |||||||||||||||||||
96 | ; | - | ||||||||||||||||||
97 | fputs_unlocked ("\n", | - | ||||||||||||||||||
98 | stdout | - | ||||||||||||||||||
99 | ); | - | ||||||||||||||||||
100 | fputs_unlocked ( | - | ||||||||||||||||||
101 | dcgettext (((void *)0), | - | ||||||||||||||||||
102 | " -d, --directory create a directory, not a file\n -u, --dry-run do not create anything; merely print a name (unsafe)\n -q, --quiet suppress diagnostics about file/dir-creation failure\n" | - | ||||||||||||||||||
103 | , 5) | - | ||||||||||||||||||
104 | , | - | ||||||||||||||||||
105 | stdout | - | ||||||||||||||||||
106 | ) | - | ||||||||||||||||||
107 | - | |||||||||||||||||||
108 | - | |||||||||||||||||||
109 | - | |||||||||||||||||||
110 | ; | - | ||||||||||||||||||
111 | fputs_unlocked ( | - | ||||||||||||||||||
112 | dcgettext (((void *)0), | - | ||||||||||||||||||
113 | " --suffix=SUFF append SUFF to TEMPLATE; SUFF must not contain a slash.\n This option is implied if TEMPLATE does not end in X\n" | - | ||||||||||||||||||
114 | , 5) | - | ||||||||||||||||||
115 | , | - | ||||||||||||||||||
116 | stdout | - | ||||||||||||||||||
117 | ) | - | ||||||||||||||||||
118 | - | |||||||||||||||||||
119 | - | |||||||||||||||||||
120 | ; | - | ||||||||||||||||||
121 | fputs_unlocked ( | - | ||||||||||||||||||
122 | dcgettext (((void *)0), | - | ||||||||||||||||||
123 | " -p DIR, --tmpdir[=DIR] interpret TEMPLATE relative to DIR; if DIR is not\n specified, use $TMPDIR if set, else /tmp. With\n this option, TEMPLATE must not be an absolute name;\n unlike with -t, TEMPLATE may contain slashes, but\n mktemp creates only the final component\n" | - | ||||||||||||||||||
124 | , 5) | - | ||||||||||||||||||
125 | , | - | ||||||||||||||||||
126 | stdout | - | ||||||||||||||||||
127 | ) | - | ||||||||||||||||||
128 | - | |||||||||||||||||||
129 | - | |||||||||||||||||||
130 | - | |||||||||||||||||||
131 | - | |||||||||||||||||||
132 | - | |||||||||||||||||||
133 | ; | - | ||||||||||||||||||
134 | fputs_unlocked ( | - | ||||||||||||||||||
135 | dcgettext (((void *)0), | - | ||||||||||||||||||
136 | " -t interpret TEMPLATE as a single file name component,\n relative to a directory: $TMPDIR, if set; else the\n directory specified via -p; else /tmp [deprecated]\n" | - | ||||||||||||||||||
137 | , 5) | - | ||||||||||||||||||
138 | , | - | ||||||||||||||||||
139 | stdout | - | ||||||||||||||||||
140 | ) | - | ||||||||||||||||||
141 | - | |||||||||||||||||||
142 | - | |||||||||||||||||||
143 | - | |||||||||||||||||||
144 | ; | - | ||||||||||||||||||
145 | fputs_unlocked ( | - | ||||||||||||||||||
146 | dcgettext (((void *)0), | - | ||||||||||||||||||
147 | " --help display this help and exit\n" | - | ||||||||||||||||||
148 | , 5) | - | ||||||||||||||||||
149 | , | - | ||||||||||||||||||
150 | stdout | - | ||||||||||||||||||
151 | ); | - | ||||||||||||||||||
152 | fputs_unlocked ( | - | ||||||||||||||||||
153 | dcgettext (((void *)0), | - | ||||||||||||||||||
154 | " --version output version information and exit\n" | - | ||||||||||||||||||
155 | , 5) | - | ||||||||||||||||||
156 | , | - | ||||||||||||||||||
157 | stdout | - | ||||||||||||||||||
158 | ); | - | ||||||||||||||||||
159 | emit_ancillary_info ("mktemp"); | - | ||||||||||||||||||
160 | } executed 13 times by 1 test: end of block Executed by:
| 13 | ||||||||||||||||||
161 | - | |||||||||||||||||||
162 | exit (status); executed 18 times by 1 test: exit (status); Executed by:
| 18 | ||||||||||||||||||
163 | } | - | ||||||||||||||||||
164 | - | |||||||||||||||||||
165 | static size_t | - | ||||||||||||||||||
166 | count_consecutive_X_s (const char *s, size_t len) | - | ||||||||||||||||||
167 | { | - | ||||||||||||||||||
168 | size_t n = 0; | - | ||||||||||||||||||
169 | for ( ; len
| 1-2874 | ||||||||||||||||||
170 | ++ executed 2304 times by 1 test: n;++n; Executed by:
executed 2304 times by 1 test: ++n; Executed by:
| 2304 | ||||||||||||||||||
171 | return executed 571 times by 1 test: n;return n; Executed by:
executed 571 times by 1 test: return n; Executed by:
| 571 | ||||||||||||||||||
172 | } | - | ||||||||||||||||||
173 | - | |||||||||||||||||||
174 | static int | - | ||||||||||||||||||
175 | mkstemp_len (char *tmpl, size_t suff_len, size_t x_len, | - | ||||||||||||||||||
176 | _Bool | - | ||||||||||||||||||
177 | dry_run) | - | ||||||||||||||||||
178 | { | - | ||||||||||||||||||
179 | return executed 16 times by 1 test: gen_tempname_len (tmpl, suff_len, 0, dry_run ? 2 : 0,return gen_tempname_len (tmpl, suff_len, 0, dry_run ? 2 : 0, x_len); Executed by:
executed 16 times by 1 test: return gen_tempname_len (tmpl, suff_len, 0, dry_run ? 2 : 0, x_len); Executed by:
| 16 | ||||||||||||||||||
180 | x_len); executed 16 times by 1 test: return gen_tempname_len (tmpl, suff_len, 0, dry_run ? 2 : 0, x_len); Executed by:
| 16 | ||||||||||||||||||
181 | } | - | ||||||||||||||||||
182 | - | |||||||||||||||||||
183 | static int | - | ||||||||||||||||||
184 | mkdtemp_len (char *tmpl, size_t suff_len, size_t x_len, | - | ||||||||||||||||||
185 | _Bool | - | ||||||||||||||||||
186 | dry_run) | - | ||||||||||||||||||
187 | { | - | ||||||||||||||||||
188 | return executed 550 times by 1 test: gen_tempname_len (tmpl, suff_len, 0, dry_run ? 2 : 1,return gen_tempname_len (tmpl, suff_len, 0, dry_run ? 2 : 1, x_len); Executed by:
executed 550 times by 1 test: return gen_tempname_len (tmpl, suff_len, 0, dry_run ? 2 : 1, x_len); Executed by:
| 550 | ||||||||||||||||||
189 | x_len); executed 550 times by 1 test: return gen_tempname_len (tmpl, suff_len, 0, dry_run ? 2 : 1, x_len); Executed by:
| 550 | ||||||||||||||||||
190 | } | - | ||||||||||||||||||
191 | - | |||||||||||||||||||
192 | - | |||||||||||||||||||
193 | static | - | ||||||||||||||||||
194 | _Bool | - | ||||||||||||||||||
195 | stdout_closed; | - | ||||||||||||||||||
196 | - | |||||||||||||||||||
197 | - | |||||||||||||||||||
198 | - | |||||||||||||||||||
199 | - | |||||||||||||||||||
200 | - | |||||||||||||||||||
201 | static void | - | ||||||||||||||||||
202 | maybe_close_stdout (void) | - | ||||||||||||||||||
203 | { | - | ||||||||||||||||||
204 | if (!stdout_closed
| 36-561 | ||||||||||||||||||
205 | close_stdout (); executed 36 times by 1 test: close_stdout (); Executed by:
| 36 | ||||||||||||||||||
206 | else if (close_stream (
| 0-561 | ||||||||||||||||||
207 | stderr
| 0-561 | ||||||||||||||||||
208 | ) != 0
| 0-561 | ||||||||||||||||||
209 | _exit ( never executed: _exit ( 1 ); | 0 | ||||||||||||||||||
210 | 1 never executed: _exit ( 1 ); | 0 | ||||||||||||||||||
211 | ); never executed: _exit ( 1 ); | 0 | ||||||||||||||||||
212 | } executed 597 times by 1 test: end of block Executed by:
| 597 | ||||||||||||||||||
213 | - | |||||||||||||||||||
214 | int | - | ||||||||||||||||||
215 | main (int argc, char **argv) | - | ||||||||||||||||||
216 | { | - | ||||||||||||||||||
217 | char const *dest_dir; | - | ||||||||||||||||||
218 | char const *dest_dir_arg = | - | ||||||||||||||||||
219 | ((void *)0) | - | ||||||||||||||||||
220 | ; | - | ||||||||||||||||||
221 | - | |||||||||||||||||||
222 | _Bool | - | ||||||||||||||||||
223 | suppress_file_err = | - | ||||||||||||||||||
224 | 0 | - | ||||||||||||||||||
225 | ; | - | ||||||||||||||||||
226 | int c; | - | ||||||||||||||||||
227 | unsigned int n_args; | - | ||||||||||||||||||
228 | char *template; | - | ||||||||||||||||||
229 | char *suffix = | - | ||||||||||||||||||
230 | ((void *)0) | - | ||||||||||||||||||
231 | ; | - | ||||||||||||||||||
232 | - | |||||||||||||||||||
233 | _Bool | - | ||||||||||||||||||
234 | use_dest_dir = | - | ||||||||||||||||||
235 | 0 | - | ||||||||||||||||||
236 | ; | - | ||||||||||||||||||
237 | - | |||||||||||||||||||
238 | _Bool | - | ||||||||||||||||||
239 | deprecated_t_option = | - | ||||||||||||||||||
240 | 0 | - | ||||||||||||||||||
241 | ; | - | ||||||||||||||||||
242 | - | |||||||||||||||||||
243 | _Bool | - | ||||||||||||||||||
244 | create_directory = | - | ||||||||||||||||||
245 | 0 | - | ||||||||||||||||||
246 | ; | - | ||||||||||||||||||
247 | - | |||||||||||||||||||
248 | _Bool | - | ||||||||||||||||||
249 | dry_run = | - | ||||||||||||||||||
250 | 0 | - | ||||||||||||||||||
251 | ; | - | ||||||||||||||||||
252 | int status = | - | ||||||||||||||||||
253 | 0 | - | ||||||||||||||||||
254 | ; | - | ||||||||||||||||||
255 | size_t x_count; | - | ||||||||||||||||||
256 | size_t suffix_len; | - | ||||||||||||||||||
257 | char *dest_name; | - | ||||||||||||||||||
258 | - | |||||||||||||||||||
259 | ; | - | ||||||||||||||||||
260 | set_program_name (argv[0]); | - | ||||||||||||||||||
261 | setlocale ( | - | ||||||||||||||||||
262 | 6 | - | ||||||||||||||||||
263 | , ""); | - | ||||||||||||||||||
264 | bindtextdomain ("coreutils", "/usr/local/share/locale"); | - | ||||||||||||||||||
265 | textdomain ("coreutils"); | - | ||||||||||||||||||
266 | - | |||||||||||||||||||
267 | atexit (maybe_close_stdout); | - | ||||||||||||||||||
268 | - | |||||||||||||||||||
269 | while ((
| 577-1688 | ||||||||||||||||||
270 | ((void *)0)
| 577-1688 | ||||||||||||||||||
271 | )) != -1
| 577-1688 | ||||||||||||||||||
272 | { | - | ||||||||||||||||||
273 | switch (c) | - | ||||||||||||||||||
274 | { | - | ||||||||||||||||||
275 | case executed 554 times by 1 test: 'd':case 'd': Executed by:
executed 554 times by 1 test: case 'd': Executed by:
| 554 | ||||||||||||||||||
276 | create_directory = | - | ||||||||||||||||||
277 | 1 | - | ||||||||||||||||||
278 | ; | - | ||||||||||||||||||
279 | break; executed 554 times by 1 test: break; Executed by:
| 554 | ||||||||||||||||||
280 | case executed 547 times by 1 test: 'p':case 'p': Executed by:
executed 547 times by 1 test: case 'p': Executed by:
| 547 | ||||||||||||||||||
281 | dest_dir_arg = optarg; | - | ||||||||||||||||||
282 | use_dest_dir = | - | ||||||||||||||||||
283 | 1 | - | ||||||||||||||||||
284 | ; | - | ||||||||||||||||||
285 | break; executed 547 times by 1 test: break; Executed by:
| 547 | ||||||||||||||||||
286 | case executed 6 times by 1 test: 'q':case 'q': Executed by:
executed 6 times by 1 test: case 'q': Executed by:
| 6 | ||||||||||||||||||
287 | suppress_file_err = | - | ||||||||||||||||||
288 | 1 | - | ||||||||||||||||||
289 | ; | - | ||||||||||||||||||
290 | break; executed 6 times by 1 test: break; Executed by:
| 6 | ||||||||||||||||||
291 | case executed 545 times by 1 test: 't':case 't': Executed by:
executed 545 times by 1 test: case 't': Executed by:
| 545 | ||||||||||||||||||
292 | use_dest_dir = | - | ||||||||||||||||||
293 | 1 | - | ||||||||||||||||||
294 | ; | - | ||||||||||||||||||
295 | deprecated_t_option = | - | ||||||||||||||||||
296 | 1 | - | ||||||||||||||||||
297 | ; | - | ||||||||||||||||||
298 | break; executed 545 times by 1 test: break; Executed by:
| 545 | ||||||||||||||||||
299 | case executed 6 times by 1 test: 'u':case 'u': Executed by:
executed 6 times by 1 test: case 'u': Executed by:
| 6 | ||||||||||||||||||
300 | dry_run = | - | ||||||||||||||||||
301 | 1 | - | ||||||||||||||||||
302 | ; | - | ||||||||||||||||||
303 | break; executed 6 times by 1 test: break; Executed by:
| 6 | ||||||||||||||||||
304 | - | |||||||||||||||||||
305 | case executed 10 times by 1 test: SUFFIX_OPTION:case SUFFIX_OPTION: Executed by:
executed 10 times by 1 test: case SUFFIX_OPTION: Executed by:
| 10 | ||||||||||||||||||
306 | suffix = optarg; | - | ||||||||||||||||||
307 | break; executed 10 times by 1 test: break; Executed by:
| 10 | ||||||||||||||||||
308 | - | |||||||||||||||||||
309 | case executed 13 times by 1 test: GETOPT_HELP_CHAR:case GETOPT_HELP_CHAR: Executed by:
executed 13 times by 1 test: usage (case GETOPT_HELP_CHAR: Executed by:
| 13 | ||||||||||||||||||
310 | 0 | - | ||||||||||||||||||
311 | ); break; never executed: ;break; | 0 | ||||||||||||||||||
312 | - | |||||||||||||||||||
313 | case never executed: 'V':case 'V': never executed: case 'V': | 0 | ||||||||||||||||||
314 | - | |||||||||||||||||||
315 | case executed 4 times by 1 test: GETOPT_VERSION_CHAR:case GETOPT_VERSION_CHAR: Executed by:
executed 4 times by 1 test: version_etc (case GETOPT_VERSION_CHAR: Executed by:
| 4 | ||||||||||||||||||
316 | stdout | - | ||||||||||||||||||
317 | , "mktemp", "GNU coreutils", Version, ("Jim Meyering"), ("Eric Blake"), (char *) | - | ||||||||||||||||||
318 | ((void *)0) | - | ||||||||||||||||||
319 | ); exit ( executed 4 times by 1 test: exit ( 0 ); Executed by:
| 4 | ||||||||||||||||||
320 | 0 executed 4 times by 1 test: exit ( 0 ); Executed by:
| 4 | ||||||||||||||||||
321 | ); executed 4 times by 1 test: break;exit ( 0 ); Executed by:
never executed: ;break; | 0-4 | ||||||||||||||||||
322 | default executed 3 times by 1 test: :default: Executed by:
executed 3 times by 1 test: default: Executed by:
| 3 | ||||||||||||||||||
323 | usage ( | - | ||||||||||||||||||
324 | 1 | - | ||||||||||||||||||
325 | ); | - | ||||||||||||||||||
326 | } never executed: end of block | 0 | ||||||||||||||||||
327 | } | - | ||||||||||||||||||
328 | - | |||||||||||||||||||
329 | n_args = argc - optind; | - | ||||||||||||||||||
330 | if (2 <= n_args
| 2-575 | ||||||||||||||||||
331 | { | - | ||||||||||||||||||
332 | error (0, 0, | - | ||||||||||||||||||
333 | dcgettext (((void *)0), | - | ||||||||||||||||||
334 | "too many templates" | - | ||||||||||||||||||
335 | , 5) | - | ||||||||||||||||||
336 | ); | - | ||||||||||||||||||
337 | usage ( | - | ||||||||||||||||||
338 | 1 | - | ||||||||||||||||||
339 | ); | - | ||||||||||||||||||
340 | } never executed: end of block | 0 | ||||||||||||||||||
341 | - | |||||||||||||||||||
342 | if (n_args == 0
| 3-572 | ||||||||||||||||||
343 | { | - | ||||||||||||||||||
344 | use_dest_dir = | - | ||||||||||||||||||
345 | 1 | - | ||||||||||||||||||
346 | ; | - | ||||||||||||||||||
347 | template = (char *) default_template; | - | ||||||||||||||||||
348 | } executed 3 times by 1 test: end of block Executed by:
| 3 | ||||||||||||||||||
349 | else | - | ||||||||||||||||||
350 | { | - | ||||||||||||||||||
351 | template = argv[optind]; | - | ||||||||||||||||||
352 | } executed 572 times by 1 test: end of block Executed by:
| 572 | ||||||||||||||||||
353 | - | |||||||||||||||||||
354 | if (suffix
| 9-566 | ||||||||||||||||||
355 | { | - | ||||||||||||||||||
356 | size_t len = strlen (template); | - | ||||||||||||||||||
357 | if (!len
| 1-8 | ||||||||||||||||||
358 | { | - | ||||||||||||||||||
359 | ((!!sizeof (struct { _Static_assert ( | - | ||||||||||||||||||
360 | 1 | - | ||||||||||||||||||
361 | , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"with --suffix, template %s must end in X\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( | - | ||||||||||||||||||
362 | 1 | - | ||||||||||||||||||
363 | , 0, | - | ||||||||||||||||||
364 | dcgettext (((void *)0), | - | ||||||||||||||||||
365 | "with --suffix, template %s must end in X" | - | ||||||||||||||||||
366 | , 5) | - | ||||||||||||||||||
367 | , quote (template)), (( | - | ||||||||||||||||||
368 | 0 | - | ||||||||||||||||||
369 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( | - | ||||||||||||||||||
370 | 1 | - | ||||||||||||||||||
371 | , 0, | - | ||||||||||||||||||
372 | dcgettext (((void *)0), | - | ||||||||||||||||||
373 | "with --suffix, template %s must end in X" | - | ||||||||||||||||||
374 | , 5) | - | ||||||||||||||||||
375 | , quote (template)), (( | - | ||||||||||||||||||
376 | 0 | - | ||||||||||||||||||
377 | ) ? (void) 0 : __builtin_unreachable ())))) | - | ||||||||||||||||||
378 | - | |||||||||||||||||||
379 | ; | - | ||||||||||||||||||
380 | } never executed: end of block | 0 | ||||||||||||||||||
381 | suffix_len = strlen (suffix); | - | ||||||||||||||||||
382 | dest_name = xcharalloc (len + suffix_len + 1); | - | ||||||||||||||||||
383 | memcpy (dest_name, template, len); | - | ||||||||||||||||||
384 | memcpy (dest_name + len, suffix, suffix_len + 1); | - | ||||||||||||||||||
385 | template = dest_name; | - | ||||||||||||||||||
386 | suffix = dest_name + len; | - | ||||||||||||||||||
387 | } executed 7 times by 1 test: end of block Executed by:
| 7 | ||||||||||||||||||
388 | else | - | ||||||||||||||||||
389 | { | - | ||||||||||||||||||
390 | template = xstrdup (template); | - | ||||||||||||||||||
391 | suffix = strrchr (template, 'X'); | - | ||||||||||||||||||
392 | if (!suffix
| 0-566 | ||||||||||||||||||
393 | suffix = never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ; | 0 | ||||||||||||||||||
394 | (__extension__ (__builtin_constant_p (
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ; | 0 | ||||||||||||||||||
395 | '\0'
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ; | 0 | ||||||||||||||||||
396 | )
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ; | 0 | ||||||||||||||||||
397 | template
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ; | 0 | ||||||||||||||||||
398 | )
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ; | 0 | ||||||||||||||||||
399 | '\0'
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ; | 0 | ||||||||||||||||||
400 | ) == '\0'
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ; | 0 | ||||||||||||||||||
401 | template never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ; | 0 | ||||||||||||||||||
402 | , never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ; | 0 | ||||||||||||||||||
403 | '\0' never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ; | 0 | ||||||||||||||||||
404 | ) : __builtin_strchr ( never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ; | 0 | ||||||||||||||||||
405 | template never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ; | 0 | ||||||||||||||||||
406 | , never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ; | 0 | ||||||||||||||||||
407 | '\0' never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ; | 0 | ||||||||||||||||||
408 | ))) never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ; | 0 | ||||||||||||||||||
409 | ; never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ; | 0 | ||||||||||||||||||
410 | else | - | ||||||||||||||||||
411 | suffix++; executed 566 times by 1 test: suffix++; Executed by:
| 566 | ||||||||||||||||||
412 | suffix_len = strlen (suffix); | - | ||||||||||||||||||
413 | } executed 566 times by 1 test: end of block Executed by:
| 566 | ||||||||||||||||||
414 | - | |||||||||||||||||||
415 | - | |||||||||||||||||||
416 | if (suffix_len
| 2-561 | ||||||||||||||||||
417 | { | - | ||||||||||||||||||
418 | ((!!sizeof (struct { _Static_assert ( | - | ||||||||||||||||||
419 | 1 | - | ||||||||||||||||||
420 | , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid suffix %s, contains directory separator\", 5), quote (suffix)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( | - | ||||||||||||||||||
421 | 1 | - | ||||||||||||||||||
422 | , 0, | - | ||||||||||||||||||
423 | dcgettext (((void *)0), | - | ||||||||||||||||||
424 | "invalid suffix %s, contains directory separator" | - | ||||||||||||||||||
425 | , 5) | - | ||||||||||||||||||
426 | , quote (suffix)), (( | - | ||||||||||||||||||
427 | 0 | - | ||||||||||||||||||
428 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( | - | ||||||||||||||||||
429 | 1 | - | ||||||||||||||||||
430 | , 0, | - | ||||||||||||||||||
431 | dcgettext (((void *)0), | - | ||||||||||||||||||
432 | "invalid suffix %s, contains directory separator" | - | ||||||||||||||||||
433 | , 5) | - | ||||||||||||||||||
434 | , quote (suffix)), (( | - | ||||||||||||||||||
435 | 0 | - | ||||||||||||||||||
436 | ) ? (void) 0 : __builtin_unreachable ())))) | - | ||||||||||||||||||
437 | - | |||||||||||||||||||
438 | ; | - | ||||||||||||||||||
439 | } never executed: end of block | 0 | ||||||||||||||||||
440 | x_count = count_consecutive_X_s (template, suffix - template); | - | ||||||||||||||||||
441 | if (x_count < 3
| 3-568 | ||||||||||||||||||
442 | (( executed 3 times by 1 test: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 3 | ||||||||||||||||||
443 | 1 executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 3 | ||||||||||||||||||
444 | , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 3 | ||||||||||||||||||
445 | 1 executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 3 | ||||||||||||||||||
446 | , 0, executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 3 | ||||||||||||||||||
447 | dcgettext (((void *)0), executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 3 | ||||||||||||||||||
448 | "too few X's in template %s" executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 3 | ||||||||||||||||||
449 | , 5) executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 3 | ||||||||||||||||||
450 | , quote (template)), (( executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 3 | ||||||||||||||||||
451 | 0 executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 3 | ||||||||||||||||||
452 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 3 | ||||||||||||||||||
453 | 1 executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 3 | ||||||||||||||||||
454 | , 0, executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 3 | ||||||||||||||||||
455 | dcgettext (((void *)0), executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 3 | ||||||||||||||||||
456 | "too few X's in template %s" executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 3 | ||||||||||||||||||
457 | , 5) executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 3 | ||||||||||||||||||
458 | , quote (template)), (( executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 3 | ||||||||||||||||||
459 | 0 executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 3 | ||||||||||||||||||
460 | ) ? (void) 0 : __builtin_unreachable ())))); executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 3 | ||||||||||||||||||
461 | - | |||||||||||||||||||
462 | if (use_dest_dir
| 19-549 | ||||||||||||||||||
463 | { | - | ||||||||||||||||||
464 | if (deprecated_t_option
| 5-544 | ||||||||||||||||||
465 | { | - | ||||||||||||||||||
466 | char *env = getenv ("TMPDIR"); | - | ||||||||||||||||||
467 | if (env
| 0-543 | ||||||||||||||||||
468 | dest_dir = env; executed 1 time by 1 test: dest_dir = env; Executed by:
| 1 | ||||||||||||||||||
469 | else if (dest_dir_arg
| 0-543 | ||||||||||||||||||
470 | dest_dir = dest_dir_arg; executed 543 times by 1 test: dest_dir = dest_dir_arg; Executed by:
| 543 | ||||||||||||||||||
471 | else | - | ||||||||||||||||||
472 | dest_dir = "/tmp"; never executed: dest_dir = "/tmp"; | 0 | ||||||||||||||||||
473 | - | |||||||||||||||||||
474 | if (last_component (template) != template
| 1-543 | ||||||||||||||||||
475 | (( executed 1 time by 1 test: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
476 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
477 | , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
478 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
479 | , 0, executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
480 | dcgettext (((void *)0), executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
481 | "invalid template, %s, contains directory separator" executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
482 | , 5) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
483 | , quote (template)), (( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
484 | 0 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
485 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
486 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
487 | , 0, executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
488 | dcgettext (((void *)0), executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
489 | "invalid template, %s, contains directory separator" executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
490 | , 5) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
491 | , quote (template)), (( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
492 | 0 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
493 | ) ? (void) 0 : __builtin_unreachable ())))) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
494 | 1 | |||||||||||||||||||
495 | ; executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
496 | } executed 543 times by 1 test: end of block Executed by:
| 543 | ||||||||||||||||||
497 | else | - | ||||||||||||||||||
498 | { | - | ||||||||||||||||||
499 | if (dest_dir_arg
| 0-3 | ||||||||||||||||||
500 | dest_dir = dest_dir_arg; executed 2 times by 1 test: dest_dir = dest_dir_arg; Executed by:
| 2 | ||||||||||||||||||
501 | else | - | ||||||||||||||||||
502 | { | - | ||||||||||||||||||
503 | char *env = getenv ("TMPDIR"); | - | ||||||||||||||||||
504 | dest_dir = (env
| 0-3 | ||||||||||||||||||
505 | } executed 3 times by 1 test: end of block Executed by:
| 3 | ||||||||||||||||||
506 | if (((((
| 0-4 | ||||||||||||||||||
507 | (( executed 1 time by 1 test: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
508 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
509 | , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
510 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
511 | , 0, executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
512 | dcgettext (((void *)0), executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
513 | "invalid template, %s; with --tmpdir," " it may not be absolute" executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
514 | , 5) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
515 | , quote (template)), (( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
516 | 0 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
517 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
518 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
519 | , 0, executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
520 | dcgettext (((void *)0), executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
521 | "invalid template, %s; with --tmpdir," " it may not be absolute" executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
522 | , 5) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
523 | , quote (template)), (( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
524 | 0 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
525 | ) ? (void) 0 : __builtin_unreachable ())))) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
526 | 1 | |||||||||||||||||||
527 | 1 | |||||||||||||||||||
528 | ; executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||
529 | } executed 4 times by 1 test: end of block Executed by:
| 4 | ||||||||||||||||||
530 | - | |||||||||||||||||||
531 | dest_name = file_name_concat (dest_dir, template, | - | ||||||||||||||||||
532 | ((void *)0) | - | ||||||||||||||||||
533 | ); | - | ||||||||||||||||||
534 | free (template); | - | ||||||||||||||||||
535 | template = dest_name; | - | ||||||||||||||||||
536 | - | |||||||||||||||||||
537 | } executed 547 times by 1 test: end of block Executed by:
| 547 | ||||||||||||||||||
538 | - | |||||||||||||||||||
539 | - | |||||||||||||||||||
540 | - | |||||||||||||||||||
541 | dest_name = xstrdup (template); | - | ||||||||||||||||||
542 | - | |||||||||||||||||||
543 | if (create_directory
| 16-550 | ||||||||||||||||||
544 | { | - | ||||||||||||||||||
545 | int err = mkdtemp_len (dest_name, suffix_len, x_count, dry_run); | - | ||||||||||||||||||
546 | if (err != 0
| 0-550 | ||||||||||||||||||
547 | { | - | ||||||||||||||||||
548 | if (!suppress_file_err
| 0 | ||||||||||||||||||
549 | error (0, never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create directory via template %s" , 5) , quote (template)); | 0 | ||||||||||||||||||
550 | (*__errno_location ()) never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create directory via template %s" , 5) , quote (template)); | 0 | ||||||||||||||||||
551 | , never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create directory via template %s" , 5) , quote (template)); | 0 | ||||||||||||||||||
552 | dcgettext (((void *)0), never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create directory via template %s" , 5) , quote (template)); | 0 | ||||||||||||||||||
553 | "failed to create directory via template %s" never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create directory via template %s" , 5) , quote (template)); | 0 | ||||||||||||||||||
554 | , 5) never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create directory via template %s" , 5) , quote (template)); | 0 | ||||||||||||||||||
555 | , never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create directory via template %s" , 5) , quote (template)); | 0 | ||||||||||||||||||
556 | quote (template)); never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create directory via template %s" , 5) , quote (template)); | 0 | ||||||||||||||||||
557 | status = | - | ||||||||||||||||||
558 | 1 | - | ||||||||||||||||||
559 | ; | - | ||||||||||||||||||
560 | } never executed: end of block | 0 | ||||||||||||||||||
561 | } executed 550 times by 1 test: end of block Executed by:
| 550 | ||||||||||||||||||
562 | else | - | ||||||||||||||||||
563 | { | - | ||||||||||||||||||
564 | int fd = mkstemp_len (dest_name, suffix_len, x_count, dry_run); | - | ||||||||||||||||||
565 | if (fd < 0
| 0-15 | ||||||||||||||||||
566 | { | - | ||||||||||||||||||
567 | if (!suppress_file_err
| 0-1 | ||||||||||||||||||
568 | error (0, executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create file via template %s" , 5) , quote (template)); Executed by:
| 1 | ||||||||||||||||||
569 | (*__errno_location ()) executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create file via template %s" , 5) , quote (template)); Executed by:
| 1 | ||||||||||||||||||
570 | , executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create file via template %s" , 5) , quote (template)); Executed by:
| 1 | ||||||||||||||||||
571 | dcgettext (((void *)0), executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create file via template %s" , 5) , quote (template)); Executed by:
| 1 | ||||||||||||||||||
572 | "failed to create file via template %s" executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create file via template %s" , 5) , quote (template)); Executed by:
| 1 | ||||||||||||||||||
573 | , 5) executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create file via template %s" , 5) , quote (template)); Executed by:
| 1 | ||||||||||||||||||
574 | , executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create file via template %s" , 5) , quote (template)); Executed by:
| 1 | ||||||||||||||||||
575 | quote (template)); executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create file via template %s" , 5) , quote (template)); Executed by:
| 1 | ||||||||||||||||||
576 | status = | - | ||||||||||||||||||
577 | 1 | - | ||||||||||||||||||
578 | ; | - | ||||||||||||||||||
579 | } executed 1 time by 1 test: end of block Executed by:
| 1 | ||||||||||||||||||
580 | } executed 16 times by 1 test: end of block Executed by:
| 16 | ||||||||||||||||||
581 | - | |||||||||||||||||||
582 | if (status ==
| 1-565 | ||||||||||||||||||
583 | 0
| 1-565 | ||||||||||||||||||
584 | ) | - | ||||||||||||||||||
585 | { | - | ||||||||||||||||||
586 | puts (dest_name); | - | ||||||||||||||||||
587 | - | |||||||||||||||||||
588 | - | |||||||||||||||||||
589 | if (!dry_run
| 4-561 | ||||||||||||||||||
590 | 1
| 4-557 | ||||||||||||||||||
591 | ), close_stream (
| 4-557 | ||||||||||||||||||
592 | stdout
| 4-557 | ||||||||||||||||||
593 | ) != 0)
| 4-557 | ||||||||||||||||||
594 | { | - | ||||||||||||||||||
595 | int saved_errno = | - | ||||||||||||||||||
596 | (*__errno_location ()) | - | ||||||||||||||||||
597 | ; | - | ||||||||||||||||||
598 | remove (dest_name); | - | ||||||||||||||||||
599 | if (!suppress_file_err
| 2 | ||||||||||||||||||
600 | error (0, saved_errno, executed 2 times by 1 test: error (0, saved_errno, dcgettext (((void *)0), "write error" , 5) ); Executed by:
| 2 | ||||||||||||||||||
601 | dcgettext (((void *)0), executed 2 times by 1 test: error (0, saved_errno, dcgettext (((void *)0), "write error" , 5) ); Executed by:
| 2 | ||||||||||||||||||
602 | "write error" executed 2 times by 1 test: error (0, saved_errno, dcgettext (((void *)0), "write error" , 5) ); Executed by:
| 2 | ||||||||||||||||||
603 | , 5) executed 2 times by 1 test: error (0, saved_errno, dcgettext (((void *)0), "write error" , 5) ); Executed by:
| 2 | ||||||||||||||||||
604 | ); executed 2 times by 1 test: error (0, saved_errno, dcgettext (((void *)0), "write error" , 5) ); Executed by:
| 2 | ||||||||||||||||||
605 | status = | - | ||||||||||||||||||
606 | 1 | - | ||||||||||||||||||
607 | ; | - | ||||||||||||||||||
608 | } executed 4 times by 1 test: end of block Executed by:
| 4 | ||||||||||||||||||
609 | } executed 565 times by 1 test: end of block Executed by:
| 565 | ||||||||||||||||||
610 | - | |||||||||||||||||||
611 | - | |||||||||||||||||||
612 | - | |||||||||||||||||||
613 | - | |||||||||||||||||||
614 | - | |||||||||||||||||||
615 | - | |||||||||||||||||||
616 | return executed 566 times by 1 test: status;return status; Executed by:
executed 566 times by 1 test: return status; Executed by:
| 566 | ||||||||||||||||||
617 | } | - | ||||||||||||||||||
Switch to Source code | Preprocessed file |