MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / application_append_quarantine

Function application_append_quarantine

src/daemon/application.c:1066–1077  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1064}
1065
1066static 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
1079static int application_max_restarts(void) {
1080 char value[32] = {0};

Callers 1

Calls 1

cbm_fopenFunction · 0.85

Tested by

no test coverage detected