MCPcopy Create free account
hub / github.com/coreutils/coreutils / cp_option_init

Function cp_option_init

src/install.c:254–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254static void
255cp_option_init (struct cp_options *x)
256{
257 cp_options_default (x);
258 x->copy_as_regular = true;
259 x->reflink_mode = REFLINK_AUTO;
260 x->dereference = DEREF_ALWAYS;
261 x->unlink_dest_before_opening = true;
262 x->unlink_dest_after_failed_open = false;
263 x->hard_link = false;
264 x->interactive = I_UNSPECIFIED;
265 x->move_mode = false;
266 x->install_mode = true;
267 x->one_file_system = false;
268 x->preserve_ownership = false;
269 x->preserve_links = false;
270 x->preserve_mode = false;
271 x->preserve_timestamps = false;
272 x->explicit_no_preserve_mode = false;
273 x->reduce_diagnostics=false;
274 x->data_copy_required = true;
275 x->require_preserve = false;
276 x->require_preserve_xattr = false;
277 x->recursive = false;
278 x->sparse_mode = SPARSE_AUTO;
279 x->symbolic_link = false;
280 x->backup_type = no_backups;
281
282 /* Create destination files initially writable so we can run strip on them.
283 Although GNU strip works fine on read-only files, some others
284 would fail. */
285 x->set_mode = true;
286 x->mode = S_IRUSR | S_IWUSR;
287 x->stdin_tty = false;
288
289 x->open_dangling_dest_symlink = false;
290 x->update = UPDATE_ALL;
291 x->require_preserve_context = false; /* Not used by install currently. */
292 x->preserve_security_context = false; /* Whether to copy context from src. */
293 x->set_security_context = NULL; /* Whether to set sys default context. */
294 x->preserve_xattr = false;
295 x->verbose = false;
296 x->dest_info = NULL;
297 x->src_info = NULL;
298}
299
300static struct selabel_handle *
301get_labeling_handle (void)

Callers 1

mainFunction · 0.70

Calls 1

cp_options_defaultFunction · 0.85

Tested by

no test coverage detected