| 926 | } |
| 927 | |
| 928 | static void cli_activation_restore_env(char *home, char *cache) { |
| 929 | if (home) { |
| 930 | cbm_setenv("HOME", home, 1); |
| 931 | } else { |
| 932 | cbm_unsetenv("HOME"); |
| 933 | } |
| 934 | if (cache) { |
| 935 | cbm_setenv("CBM_CACHE_DIR", cache, 1); |
| 936 | } else { |
| 937 | cbm_unsetenv("CBM_CACHE_DIR"); |
| 938 | } |
| 939 | free(home); |
| 940 | free(cache); |
| 941 | } |
| 942 | |
| 943 | /* Helper: create tar.gz with a single file */ |
| 944 | static unsigned char *create_test_targz(const char *filename, const unsigned char *content, |
no test coverage detected