Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/realpath.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||||||||||||||
2 | - | |||||||||||||||||||||||||
3 | - | |||||||||||||||||||||||||
4 | - | |||||||||||||||||||||||||
5 | - | |||||||||||||||||||||||||
6 | - | |||||||||||||||||||||||||
7 | - | |||||||||||||||||||||||||
8 | - | |||||||||||||||||||||||||
9 | enum | - | ||||||||||||||||||||||||
10 | { | - | ||||||||||||||||||||||||
11 | RELATIVE_TO_OPTION = 0x7f + 1, | - | ||||||||||||||||||||||||
12 | RELATIVE_BASE_OPTION | - | ||||||||||||||||||||||||
13 | }; | - | ||||||||||||||||||||||||
14 | - | |||||||||||||||||||||||||
15 | static | - | ||||||||||||||||||||||||
16 | _Bool | - | ||||||||||||||||||||||||
17 | verbose = | - | ||||||||||||||||||||||||
18 | 1 | - | ||||||||||||||||||||||||
19 | ; | - | ||||||||||||||||||||||||
20 | static | - | ||||||||||||||||||||||||
21 | _Bool | - | ||||||||||||||||||||||||
22 | logical; | - | ||||||||||||||||||||||||
23 | static | - | ||||||||||||||||||||||||
24 | _Bool | - | ||||||||||||||||||||||||
25 | use_nuls; | - | ||||||||||||||||||||||||
26 | static const char *can_relative_to; | - | ||||||||||||||||||||||||
27 | static const char *can_relative_base; | - | ||||||||||||||||||||||||
28 | - | |||||||||||||||||||||||||
29 | static struct option const longopts[] = | - | ||||||||||||||||||||||||
30 | { | - | ||||||||||||||||||||||||
31 | {"canonicalize-existing", | - | ||||||||||||||||||||||||
32 | 0 | - | ||||||||||||||||||||||||
33 | , | - | ||||||||||||||||||||||||
34 | ((void *)0) | - | ||||||||||||||||||||||||
35 | , 'e'}, | - | ||||||||||||||||||||||||
36 | {"canonicalize-missing", | - | ||||||||||||||||||||||||
37 | 0 | - | ||||||||||||||||||||||||
38 | , | - | ||||||||||||||||||||||||
39 | ((void *)0) | - | ||||||||||||||||||||||||
40 | , 'm'}, | - | ||||||||||||||||||||||||
41 | {"relative-to", | - | ||||||||||||||||||||||||
42 | 1 | - | ||||||||||||||||||||||||
43 | , | - | ||||||||||||||||||||||||
44 | ((void *)0) | - | ||||||||||||||||||||||||
45 | , RELATIVE_TO_OPTION}, | - | ||||||||||||||||||||||||
46 | {"relative-base", | - | ||||||||||||||||||||||||
47 | 1 | - | ||||||||||||||||||||||||
48 | , | - | ||||||||||||||||||||||||
49 | ((void *)0) | - | ||||||||||||||||||||||||
50 | , RELATIVE_BASE_OPTION}, | - | ||||||||||||||||||||||||
51 | {"quiet", | - | ||||||||||||||||||||||||
52 | 0 | - | ||||||||||||||||||||||||
53 | , | - | ||||||||||||||||||||||||
54 | ((void *)0) | - | ||||||||||||||||||||||||
55 | , 'q'}, | - | ||||||||||||||||||||||||
56 | {"strip", | - | ||||||||||||||||||||||||
57 | 0 | - | ||||||||||||||||||||||||
58 | , | - | ||||||||||||||||||||||||
59 | ((void *)0) | - | ||||||||||||||||||||||||
60 | , 's'}, | - | ||||||||||||||||||||||||
61 | {"no-symlinks", | - | ||||||||||||||||||||||||
62 | 0 | - | ||||||||||||||||||||||||
63 | , | - | ||||||||||||||||||||||||
64 | ((void *)0) | - | ||||||||||||||||||||||||
65 | , 's'}, | - | ||||||||||||||||||||||||
66 | {"zero", | - | ||||||||||||||||||||||||
67 | 0 | - | ||||||||||||||||||||||||
68 | , | - | ||||||||||||||||||||||||
69 | ((void *)0) | - | ||||||||||||||||||||||||
70 | , 'z'}, | - | ||||||||||||||||||||||||
71 | {"logical", | - | ||||||||||||||||||||||||
72 | 0 | - | ||||||||||||||||||||||||
73 | , | - | ||||||||||||||||||||||||
74 | ((void *)0) | - | ||||||||||||||||||||||||
75 | , 'L'}, | - | ||||||||||||||||||||||||
76 | {"physical", | - | ||||||||||||||||||||||||
77 | 0 | - | ||||||||||||||||||||||||
78 | , | - | ||||||||||||||||||||||||
79 | ((void *)0) | - | ||||||||||||||||||||||||
80 | , 'P'}, | - | ||||||||||||||||||||||||
81 | {"help", | - | ||||||||||||||||||||||||
82 | 0 | - | ||||||||||||||||||||||||
83 | , | - | ||||||||||||||||||||||||
84 | ((void *)0) | - | ||||||||||||||||||||||||
85 | , GETOPT_HELP_CHAR}, | - | ||||||||||||||||||||||||
86 | {"version", | - | ||||||||||||||||||||||||
87 | 0 | - | ||||||||||||||||||||||||
88 | , | - | ||||||||||||||||||||||||
89 | ((void *)0) | - | ||||||||||||||||||||||||
90 | , GETOPT_VERSION_CHAR}, | - | ||||||||||||||||||||||||
91 | { | - | ||||||||||||||||||||||||
92 | ((void *)0) | - | ||||||||||||||||||||||||
93 | , 0, | - | ||||||||||||||||||||||||
94 | ((void *)0) | - | ||||||||||||||||||||||||
95 | , 0} | - | ||||||||||||||||||||||||
96 | }; | - | ||||||||||||||||||||||||
97 | - | |||||||||||||||||||||||||
98 | void | - | ||||||||||||||||||||||||
99 | usage (int status) | - | ||||||||||||||||||||||||
100 | { | - | ||||||||||||||||||||||||
101 | if (status !=
| 6-20 | ||||||||||||||||||||||||
102 | 0
| 6-20 | ||||||||||||||||||||||||
103 | ) | - | ||||||||||||||||||||||||
104 | do { fprintf ( | - | ||||||||||||||||||||||||
105 | stderr | - | ||||||||||||||||||||||||
106 | , | - | ||||||||||||||||||||||||
107 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
108 | "Try '%s --help' for more information.\n" | - | ||||||||||||||||||||||||
109 | , 5) | - | ||||||||||||||||||||||||
110 | , program_name); } executed 6 times by 1 test: while (0);end of block Executed by:
| 6 | ||||||||||||||||||||||||
111 | else | - | ||||||||||||||||||||||||
112 | { | - | ||||||||||||||||||||||||
113 | printf ( | - | ||||||||||||||||||||||||
114 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
115 | "Usage: %s [OPTION]... FILE...\n" | - | ||||||||||||||||||||||||
116 | , 5) | - | ||||||||||||||||||||||||
117 | , program_name); | - | ||||||||||||||||||||||||
118 | fputs_unlocked ( | - | ||||||||||||||||||||||||
119 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
120 | "Print the resolved absolute file name;\nall but the last component must exist\n\n" | - | ||||||||||||||||||||||||
121 | , 5) | - | ||||||||||||||||||||||||
122 | , | - | ||||||||||||||||||||||||
123 | stdout | - | ||||||||||||||||||||||||
124 | ) | - | ||||||||||||||||||||||||
125 | - | |||||||||||||||||||||||||
126 | - | |||||||||||||||||||||||||
127 | - | |||||||||||||||||||||||||
128 | ; | - | ||||||||||||||||||||||||
129 | fputs_unlocked ( | - | ||||||||||||||||||||||||
130 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
131 | " -e, --canonicalize-existing all components of the path must exist\n -m, --canonicalize-missing no path components need exist or be a directory\n -L, --logical resolve '..' components before symlinks\n -P, --physical resolve symlinks as encountered (default)\n -q, --quiet suppress most error messages\n --relative-to=DIR print the resolved path relative to DIR\n --relative-base=DIR print absolute paths unless paths below DIR\n -s, --strip, --no-symlinks don't expand symlinks\n -z, --zero end each output line with NUL, not newline\n\n" | - | ||||||||||||||||||||||||
132 | , 5) | - | ||||||||||||||||||||||||
133 | , | - | ||||||||||||||||||||||||
134 | stdout | - | ||||||||||||||||||||||||
135 | ) | - | ||||||||||||||||||||||||
136 | ; | - | ||||||||||||||||||||||||
137 | fputs_unlocked ( | - | ||||||||||||||||||||||||
138 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
139 | " --help display this help and exit\n" | - | ||||||||||||||||||||||||
140 | , 5) | - | ||||||||||||||||||||||||
141 | , | - | ||||||||||||||||||||||||
142 | stdout | - | ||||||||||||||||||||||||
143 | ); | - | ||||||||||||||||||||||||
144 | fputs_unlocked ( | - | ||||||||||||||||||||||||
145 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
146 | " --version output version information and exit\n" | - | ||||||||||||||||||||||||
147 | , 5) | - | ||||||||||||||||||||||||
148 | , | - | ||||||||||||||||||||||||
149 | stdout | - | ||||||||||||||||||||||||
150 | ); | - | ||||||||||||||||||||||||
151 | emit_ancillary_info ("realpath"); | - | ||||||||||||||||||||||||
152 | } executed 20 times by 1 test: end of block Executed by:
| 20 | ||||||||||||||||||||||||
153 | exit (status); executed 26 times by 1 test: exit (status); Executed by:
| 26 | ||||||||||||||||||||||||
154 | } | - | ||||||||||||||||||||||||
155 | - | |||||||||||||||||||||||||
156 | - | |||||||||||||||||||||||||
157 | - | |||||||||||||||||||||||||
158 | static char * | - | ||||||||||||||||||||||||
159 | realpath_canon (const char *fname, int can_mode) | - | ||||||||||||||||||||||||
160 | { | - | ||||||||||||||||||||||||
161 | char *can_fname = canonicalize_filename_mode (fname, can_mode); | - | ||||||||||||||||||||||||
162 | if (logical
| 0-60 | ||||||||||||||||||||||||
163 | { | - | ||||||||||||||||||||||||
164 | can_mode &= ~CAN_NOLINKS; | - | ||||||||||||||||||||||||
165 | char *can_fname2 = canonicalize_filename_mode (can_fname, can_mode); | - | ||||||||||||||||||||||||
166 | free (can_fname); | - | ||||||||||||||||||||||||
167 | return executed 1 time by 1 test: can_fname2;return can_fname2; Executed by:
executed 1 time by 1 test: return can_fname2; Executed by:
| 1 | ||||||||||||||||||||||||
168 | } | - | ||||||||||||||||||||||||
169 | return executed 60 times by 1 test: can_fname;return can_fname; Executed by:
executed 60 times by 1 test: return can_fname; Executed by:
| 60 | ||||||||||||||||||||||||
170 | } | - | ||||||||||||||||||||||||
171 | - | |||||||||||||||||||||||||
172 | - | |||||||||||||||||||||||||
173 | static | - | ||||||||||||||||||||||||
174 | _Bool __attribute__ ((__pure__)) | - | ||||||||||||||||||||||||
175 | - | |||||||||||||||||||||||||
176 | path_prefix (const char *prefix, const char *path) | - | ||||||||||||||||||||||||
177 | { | - | ||||||||||||||||||||||||
178 | - | |||||||||||||||||||||||||
179 | prefix++; | - | ||||||||||||||||||||||||
180 | path++; | - | ||||||||||||||||||||||||
181 | - | |||||||||||||||||||||||||
182 | - | |||||||||||||||||||||||||
183 | - | |||||||||||||||||||||||||
184 | if (!*prefix
| 8 | ||||||||||||||||||||||||
185 | return executed 8 times by 1 test: *path != '/';return *path != '/'; Executed by:
executed 8 times by 1 test: return *path != '/'; Executed by:
| 8 | ||||||||||||||||||||||||
186 | - | |||||||||||||||||||||||||
187 | - | |||||||||||||||||||||||||
188 | if (*
| 0-8 | ||||||||||||||||||||||||
189 | return never executed: *path == '/';return *path == '/'; never executed: return *path == '/'; | 0 | ||||||||||||||||||||||||
190 | - | |||||||||||||||||||||||||
191 | - | |||||||||||||||||||||||||
192 | while (*
| 1-171 | ||||||||||||||||||||||||
193 | { | - | ||||||||||||||||||||||||
194 | if (*
| 2-168 | ||||||||||||||||||||||||
195 | break; executed 2 times by 1 test: break; Executed by:
| 2 | ||||||||||||||||||||||||
196 | prefix++; | - | ||||||||||||||||||||||||
197 | path++; | - | ||||||||||||||||||||||||
198 | } executed 168 times by 1 test: end of block Executed by:
| 168 | ||||||||||||||||||||||||
199 | return executed 8 times by 1 test: (!*prefix && (*path == '/' || !*path));return (!*prefix && (*path == '/' || !*path)); Executed by:
executed 8 times by 1 test: return (!*prefix && (*path == '/' || !*path)); Executed by:
| 8 | ||||||||||||||||||||||||
200 | } | - | ||||||||||||||||||||||||
201 | - | |||||||||||||||||||||||||
202 | static | - | ||||||||||||||||||||||||
203 | _Bool | - | ||||||||||||||||||||||||
204 | - | |||||||||||||||||||||||||
205 | isdir (const char *path) | - | ||||||||||||||||||||||||
206 | { | - | ||||||||||||||||||||||||
207 | struct stat sb; | - | ||||||||||||||||||||||||
208 | if (stat (path, &sb) != 0
| 0-3 | ||||||||||||||||||||||||
209 | (( never executed: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
210 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
211 | , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
212 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
213 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
214 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
215 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
216 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
217 | "cannot stat %s" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
218 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
219 | , quotearg_style (shell_escape_always_quoting_style, path)), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
220 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
221 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
222 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
223 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
224 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
225 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
226 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
227 | "cannot stat %s" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
228 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
229 | , quotearg_style (shell_escape_always_quoting_style, path)), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
230 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
231 | ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
232 | return executed 3 times by 1 test: return (((( sb.st_mode )) & 0170000) == (0040000)) ; Executed by:
executed 3 times by 1 test: return (((( sb.st_mode )) & 0170000) == (0040000)) ; Executed by:
| 3 | ||||||||||||||||||||||||
233 | (((( executed 3 times by 1 test: return (((( sb.st_mode )) & 0170000) == (0040000)) ; Executed by:
| 3 | ||||||||||||||||||||||||
234 | sb.st_mode executed 3 times by 1 test: return (((( sb.st_mode )) & 0170000) == (0040000)) ; Executed by:
| 3 | ||||||||||||||||||||||||
235 | )) & 0170000) == (0040000)) executed 3 times by 1 test: return (((( sb.st_mode )) & 0170000) == (0040000)) ; Executed by:
| 3 | ||||||||||||||||||||||||
236 | ; executed 3 times by 1 test: return (((( sb.st_mode )) & 0170000) == (0040000)) ; Executed by:
| 3 | ||||||||||||||||||||||||
237 | } | - | ||||||||||||||||||||||||
238 | - | |||||||||||||||||||||||||
239 | static | - | ||||||||||||||||||||||||
240 | _Bool | - | ||||||||||||||||||||||||
241 | - | |||||||||||||||||||||||||
242 | process_path (const char *fname, int can_mode) | - | ||||||||||||||||||||||||
243 | { | - | ||||||||||||||||||||||||
244 | char *can_fname = realpath_canon (fname, can_mode); | - | ||||||||||||||||||||||||
245 | if (!can_fname
| 1-38 | ||||||||||||||||||||||||
246 | { | - | ||||||||||||||||||||||||
247 | if (verbose
| 0-1 | ||||||||||||||||||||||||
248 | error (0, executed 1 time by 1 test: error (0, (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, fname)); Executed by:
| 1 | ||||||||||||||||||||||||
249 | (*__errno_location ()) executed 1 time by 1 test: error (0, (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, fname)); Executed by:
| 1 | ||||||||||||||||||||||||
250 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, fname)); executed 1 time by 1 test: error (0, (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, fname)); Executed by:
| 1 | ||||||||||||||||||||||||
251 | return executed 1 time by 1 test: return 0 ; Executed by:
executed 1 time by 1 test: return 0 ; Executed by:
| 1 | ||||||||||||||||||||||||
252 | 0 executed 1 time by 1 test: return 0 ; Executed by:
| 1 | ||||||||||||||||||||||||
253 | ; executed 1 time by 1 test: return 0 ; Executed by:
| 1 | ||||||||||||||||||||||||
254 | } | - | ||||||||||||||||||||||||
255 | - | |||||||||||||||||||||||||
256 | if (!can_relative_to
| 14-24 | ||||||||||||||||||||||||
257 | || (can_relative_base
| 2-13 | ||||||||||||||||||||||||
258 | || (can_relative_to
| 0-22 | ||||||||||||||||||||||||
259 | ((void *)0)
| 0-22 | ||||||||||||||||||||||||
260 | , 0)
| 0-22 | ||||||||||||||||||||||||
261 | fputs_unlocked (can_fname, executed 16 times by 1 test: fputs_unlocked (can_fname, stdout ); Executed by:
| 16 | ||||||||||||||||||||||||
262 | stdout executed 16 times by 1 test: fputs_unlocked (can_fname, stdout ); Executed by:
| 16 | ||||||||||||||||||||||||
263 | ); executed 16 times by 1 test: fputs_unlocked (can_fname, stdout ); Executed by:
| 16 | ||||||||||||||||||||||||
264 | - | |||||||||||||||||||||||||
265 | putchar_unlocked (use_nuls ? '\0' : '\n'); | - | ||||||||||||||||||||||||
266 | - | |||||||||||||||||||||||||
267 | free (can_fname); | - | ||||||||||||||||||||||||
268 | - | |||||||||||||||||||||||||
269 | return executed 38 times by 1 test: return 1 ; Executed by:
executed 38 times by 1 test: return 1 ; Executed by:
| 38 | ||||||||||||||||||||||||
270 | 1 executed 38 times by 1 test: return 1 ; Executed by:
| 38 | ||||||||||||||||||||||||
271 | ; executed 38 times by 1 test: return 1 ; Executed by:
| 38 | ||||||||||||||||||||||||
272 | } | - | ||||||||||||||||||||||||
273 | - | |||||||||||||||||||||||||
274 | int | - | ||||||||||||||||||||||||
275 | main (int argc, char **argv) | - | ||||||||||||||||||||||||
276 | { | - | ||||||||||||||||||||||||
277 | - | |||||||||||||||||||||||||
278 | _Bool | - | ||||||||||||||||||||||||
279 | ok = | - | ||||||||||||||||||||||||
280 | 1 | - | ||||||||||||||||||||||||
281 | ; | - | ||||||||||||||||||||||||
282 | int can_mode = CAN_ALL_BUT_LAST; | - | ||||||||||||||||||||||||
283 | const char *relative_to = | - | ||||||||||||||||||||||||
284 | ((void *)0) | - | ||||||||||||||||||||||||
285 | ; | - | ||||||||||||||||||||||||
286 | const char *relative_base = | - | ||||||||||||||||||||||||
287 | ((void *)0) | - | ||||||||||||||||||||||||
288 | ; | - | ||||||||||||||||||||||||
289 | - | |||||||||||||||||||||||||
290 | ; | - | ||||||||||||||||||||||||
291 | set_program_name (argv[0]); | - | ||||||||||||||||||||||||
292 | setlocale ( | - | ||||||||||||||||||||||||
293 | 6 | - | ||||||||||||||||||||||||
294 | , ""); | - | ||||||||||||||||||||||||
295 | bindtextdomain ("coreutils", "/usr/local/share/locale"); | - | ||||||||||||||||||||||||
296 | textdomain ("coreutils"); | - | ||||||||||||||||||||||||
297 | - | |||||||||||||||||||||||||
298 | atexit (close_stdout); | - | ||||||||||||||||||||||||
299 | - | |||||||||||||||||||||||||
300 | while (1) | - | ||||||||||||||||||||||||
301 | { | - | ||||||||||||||||||||||||
302 | int c = getopt_long (argc, argv, "eLmPqsz", longopts, | - | ||||||||||||||||||||||||
303 | ((void *)0) | - | ||||||||||||||||||||||||
304 | ); | - | ||||||||||||||||||||||||
305 | if (c == -1
| 28-99 | ||||||||||||||||||||||||
306 | break; executed 28 times by 1 test: break; Executed by:
| 28 | ||||||||||||||||||||||||
307 | switch (c) | - | ||||||||||||||||||||||||
308 | { | - | ||||||||||||||||||||||||
309 | case executed 4 times by 1 test: 'e':case 'e': Executed by:
executed 4 times by 1 test: case 'e': Executed by:
| 4 | ||||||||||||||||||||||||
310 | can_mode &= ~(CAN_EXISTING | CAN_ALL_BUT_LAST | CAN_MISSING); | - | ||||||||||||||||||||||||
311 | can_mode |= CAN_EXISTING; | - | ||||||||||||||||||||||||
312 | break; executed 4 times by 1 test: break; Executed by:
| 4 | ||||||||||||||||||||||||
313 | case executed 15 times by 1 test: 'm':case 'm': Executed by:
executed 15 times by 1 test: case 'm': Executed by:
| 15 | ||||||||||||||||||||||||
314 | can_mode &= ~(CAN_EXISTING | CAN_ALL_BUT_LAST | CAN_MISSING); | - | ||||||||||||||||||||||||
315 | can_mode |= CAN_MISSING; | - | ||||||||||||||||||||||||
316 | break; executed 15 times by 1 test: break; Executed by:
| 15 | ||||||||||||||||||||||||
317 | case executed 3 times by 1 test: 'L':case 'L': Executed by:
executed 3 times by 1 test: case 'L': Executed by:
| 3 | ||||||||||||||||||||||||
318 | can_mode |= CAN_NOLINKS; | - | ||||||||||||||||||||||||
319 | logical = | - | ||||||||||||||||||||||||
320 | 1 | - | ||||||||||||||||||||||||
321 | ; | - | ||||||||||||||||||||||||
322 | break; executed 3 times by 1 test: break; Executed by:
| 3 | ||||||||||||||||||||||||
323 | case executed 13 times by 1 test: 's':case 's': Executed by:
executed 13 times by 1 test: case 's': Executed by:
| 13 | ||||||||||||||||||||||||
324 | can_mode |= CAN_NOLINKS; | - | ||||||||||||||||||||||||
325 | logical = | - | ||||||||||||||||||||||||
326 | 0 | - | ||||||||||||||||||||||||
327 | ; | - | ||||||||||||||||||||||||
328 | break; executed 13 times by 1 test: break; Executed by:
| 13 | ||||||||||||||||||||||||
329 | case executed 3 times by 1 test: 'P':case 'P': Executed by:
executed 3 times by 1 test: case 'P': Executed by:
| 3 | ||||||||||||||||||||||||
330 | can_mode &= ~CAN_NOLINKS; | - | ||||||||||||||||||||||||
331 | logical = | - | ||||||||||||||||||||||||
332 | 0 | - | ||||||||||||||||||||||||
333 | ; | - | ||||||||||||||||||||||||
334 | break; executed 3 times by 1 test: break; Executed by:
| 3 | ||||||||||||||||||||||||
335 | case executed 3 times by 1 test: 'q':case 'q': Executed by:
executed 3 times by 1 test: case 'q': Executed by:
| 3 | ||||||||||||||||||||||||
336 | verbose = | - | ||||||||||||||||||||||||
337 | 0 | - | ||||||||||||||||||||||||
338 | ; | - | ||||||||||||||||||||||||
339 | break; executed 3 times by 1 test: break; Executed by:
| 3 | ||||||||||||||||||||||||
340 | case executed 3 times by 1 test: 'z':case 'z': Executed by:
executed 3 times by 1 test: case 'z': Executed by:
| 3 | ||||||||||||||||||||||||
341 | use_nuls = | - | ||||||||||||||||||||||||
342 | 1 | - | ||||||||||||||||||||||||
343 | ; | - | ||||||||||||||||||||||||
344 | break; executed 3 times by 1 test: break; Executed by:
| 3 | ||||||||||||||||||||||||
345 | case executed 16 times by 1 test: RELATIVE_TO_OPTION:case RELATIVE_TO_OPTION: Executed by:
executed 16 times by 1 test: case RELATIVE_TO_OPTION: Executed by:
| 16 | ||||||||||||||||||||||||
346 | relative_to = optarg; | - | ||||||||||||||||||||||||
347 | break; executed 16 times by 1 test: break; Executed by:
| 16 | ||||||||||||||||||||||||
348 | case executed 12 times by 1 test: RELATIVE_BASE_OPTION:case RELATIVE_BASE_OPTION: Executed by:
executed 12 times by 1 test: case RELATIVE_BASE_OPTION: Executed by:
| 12 | ||||||||||||||||||||||||
349 | relative_base = optarg; | - | ||||||||||||||||||||||||
350 | break; executed 12 times by 1 test: break; Executed by:
| 12 | ||||||||||||||||||||||||
351 | case executed 20 times by 1 test: GETOPT_HELP_CHAR:case GETOPT_HELP_CHAR: Executed by:
executed 20 times by 1 test: usage (case GETOPT_HELP_CHAR: Executed by:
| 20 | ||||||||||||||||||||||||
352 | 0 | - | ||||||||||||||||||||||||
353 | ); break; never executed: ;break; | 0 | ||||||||||||||||||||||||
354 | 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 | ||||||||||||||||||||||||
355 | stdout | - | ||||||||||||||||||||||||
356 | , "realpath", "GNU coreutils", Version, ("Padraig Brady"), (char *) | - | ||||||||||||||||||||||||
357 | ((void *)0) | - | ||||||||||||||||||||||||
358 | ); exit ( executed 4 times by 1 test: exit ( 0 ); Executed by:
| 4 | ||||||||||||||||||||||||
359 | 0 executed 4 times by 1 test: exit ( 0 ); Executed by:
| 4 | ||||||||||||||||||||||||
360 | ); executed 4 times by 1 test: break;exit ( 0 ); Executed by:
never executed: ;break; | 0-4 | ||||||||||||||||||||||||
361 | default executed 3 times by 1 test: :default: Executed by:
executed 3 times by 1 test: default: Executed by:
| 3 | ||||||||||||||||||||||||
362 | usage ( | - | ||||||||||||||||||||||||
363 | 1 | - | ||||||||||||||||||||||||
364 | ); | - | ||||||||||||||||||||||||
365 | } never executed: end of block | 0 | ||||||||||||||||||||||||
366 | } | - | ||||||||||||||||||||||||
367 | - | |||||||||||||||||||||||||
368 | if (optind >= argc
| 3-25 | ||||||||||||||||||||||||
369 | { | - | ||||||||||||||||||||||||
370 | error (0, 0, | - | ||||||||||||||||||||||||
371 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
372 | "missing operand" | - | ||||||||||||||||||||||||
373 | , 5) | - | ||||||||||||||||||||||||
374 | ); | - | ||||||||||||||||||||||||
375 | usage ( | - | ||||||||||||||||||||||||
376 | 1 | - | ||||||||||||||||||||||||
377 | ); | - | ||||||||||||||||||||||||
378 | } never executed: end of block | 0 | ||||||||||||||||||||||||
379 | - | |||||||||||||||||||||||||
380 | if (relative_base
| 2-16 | ||||||||||||||||||||||||
381 | relative_to = relative_base; executed 2 times by 1 test: relative_to = relative_base; Executed by:
| 2 | ||||||||||||||||||||||||
382 | - | |||||||||||||||||||||||||
383 | - | |||||||||||||||||||||||||
384 | _Bool | - | ||||||||||||||||||||||||
385 | need_dir = (can_mode & (CAN_EXISTING | CAN_ALL_BUT_LAST | CAN_MISSING)) == CAN_EXISTING; | - | ||||||||||||||||||||||||
386 | if (relative_to
| 9-16 | ||||||||||||||||||||||||
387 | { | - | ||||||||||||||||||||||||
388 | can_relative_to = realpath_canon (relative_to, can_mode); | - | ||||||||||||||||||||||||
389 | if (!can_relative_to
| 0-16 | ||||||||||||||||||||||||
390 | (( never executed: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
391 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
392 | , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
393 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
394 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
395 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
396 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
397 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
398 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
399 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
400 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
401 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
402 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
403 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
404 | ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
405 | if (need_dir
| 1-14 | ||||||||||||||||||||||||
406 | (( executed 1 time by 1 test: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
407 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
408 | , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
409 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
410 | , executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
411 | 20 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
412 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
413 | 0 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
414 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
415 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
416 | , executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
417 | 20 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
418 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
419 | 0 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
420 | ) ? (void) 0 : __builtin_unreachable ())))); executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
421 | } executed 15 times by 1 test: end of block Executed by:
| 15 | ||||||||||||||||||||||||
422 | if (relative_base == relative_to
| 11-13 | ||||||||||||||||||||||||
423 | can_relative_base = can_relative_to; executed 11 times by 1 test: can_relative_base = can_relative_to; Executed by:
| 11 | ||||||||||||||||||||||||
424 | else if (relative_base
| 6-7 | ||||||||||||||||||||||||
425 | { | - | ||||||||||||||||||||||||
426 | char *base = realpath_canon (relative_base, can_mode); | - | ||||||||||||||||||||||||
427 | if (!base
| 1-5 | ||||||||||||||||||||||||
428 | (( executed 1 time by 1 test: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
429 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
430 | , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
431 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
432 | , executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
433 | (*__errno_location ()) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
434 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
435 | 0 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
436 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
437 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
438 | , executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
439 | (*__errno_location ()) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
440 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
441 | 0 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
442 | ) ? (void) 0 : __builtin_unreachable ())))); executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||
443 | if (need_dir
| 0-4 | ||||||||||||||||||||||||
444 | (( never executed: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
445 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
446 | , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
447 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
448 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
449 | 20 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
450 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
451 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
452 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
453 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
454 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
455 | 20 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
456 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
457 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
458 | ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
459 | - | |||||||||||||||||||||||||
460 | - | |||||||||||||||||||||||||
461 | if (path_prefix (base, can_relative_to)
| 1-4 | ||||||||||||||||||||||||
462 | can_relative_base = base; executed 4 times by 1 test: can_relative_base = base; Executed by:
| 4 | ||||||||||||||||||||||||
463 | else | - | ||||||||||||||||||||||||
464 | { | - | ||||||||||||||||||||||||
465 | free (base); | - | ||||||||||||||||||||||||
466 | can_relative_base = can_relative_to; | - | ||||||||||||||||||||||||
467 | can_relative_to = | - | ||||||||||||||||||||||||
468 | ((void *)0) | - | ||||||||||||||||||||||||
469 | ; | - | ||||||||||||||||||||||||
470 | } executed 1 time by 1 test: end of block Executed by:
| 1 | ||||||||||||||||||||||||
471 | } | - | ||||||||||||||||||||||||
472 | - | |||||||||||||||||||||||||
473 | for (; optind < argc
| 23-39 | ||||||||||||||||||||||||
474 | ok &= process_path (argv[optind], can_mode); executed 39 times by 1 test: ok &= process_path (argv[optind], can_mode); Executed by:
| 39 | ||||||||||||||||||||||||
475 | - | |||||||||||||||||||||||||
476 | return executed 23 times by 1 test: ok ? return ok ? 0 : 1 ; Executed by:
executed 23 times by 1 test: return ok ? 0 : 1 ; Executed by:
| 23 | ||||||||||||||||||||||||
477 | 0 executed 23 times by 1 test: return ok ? 0 : 1 ; Executed by:
| 23 | ||||||||||||||||||||||||
478 | : executed 23 times by 1 test: return ok ? 0 : 1 ; Executed by:
| 23 | ||||||||||||||||||||||||
479 | 1 executed 23 times by 1 test: return ok ? 0 : 1 ; Executed by:
| 23 | ||||||||||||||||||||||||
480 | ; executed 23 times by 1 test: return ok ? 0 : 1 ; Executed by:
| 23 | ||||||||||||||||||||||||
481 | } | - | ||||||||||||||||||||||||
Switch to Source code | Preprocessed file |