Remove only OUR marked block, never the file: a user's own module may share * it, and owned removal is the convention every other uninstall path here * follows. */
| 9431 | * it, and owned removal is the convention every other uninstall path here |
| 9432 | * follows. */ |
| 9433 | static void uninstall_generated_client_extension(const char *label, const char *path, |
| 9434 | bool dry_run) { |
| 9435 | if (!dry_run && cbm_file_exists(path) && |
| 9436 | cbm_text_remove_managed_block(path, CBM_ADAPTER_MARKER_START, CBM_ADAPTER_MARKER_END) != |
| 9437 | 0) { |
| 9438 | record_agent_config_error(true, label, "extension_uninstall", path); |
| 9439 | return; |
| 9440 | } |
| 9441 | printf(" extension: removed managed block\n"); |
| 9442 | } |
| 9443 | |
| 9444 | static void install_pi_durable_context(const char *home, const char *binary_path, bool force, |
| 9445 | bool dry_run) { |
no test coverage detected