| 1064 | } |
| 1065 | |
| 1066 | static bool application_append_quarantine(const char *path, const char *relative, |
| 1067 | const char *phase) { |
| 1068 | if (!relative || !relative[0] || strpbrk(relative, "\r\n\t")) { |
| 1069 | return false; |
| 1070 | } |
| 1071 | FILE *file = cbm_fopen(path, "ab"); |
| 1072 | if (!file) { |
| 1073 | return false; |
| 1074 | } |
| 1075 | bool written = fprintf(file, "%s\t%s\n", relative, phase) >= 0; |
| 1076 | return fclose(file) == 0 && written; |
| 1077 | } |
| 1078 | |
| 1079 | static int application_max_restarts(void) { |
| 1080 | char value[32] = {0}; |
no test coverage detected