MCPcopy Index your code
hub / github.com/git/git / warn_on_fopen_errors

Function warn_on_fopen_errors

wrapper.c:401–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399}
400
401int warn_on_fopen_errors(const char *path)
402{
403 if (errno != ENOENT && errno != ENOTDIR) {
404 warn_on_inaccessible(path);
405 return -1;
406 }
407
408 return 0;
409}
410
411FILE *fopen_or_warn(const char *path, const char *mode)
412{

Callers 5

fopen_or_warnFunction · 0.85
add_patternsFunction · 0.85
read_attr_from_fileFunction · 0.85

Calls 1

warn_on_inaccessibleFunction · 0.85

Tested by

no test coverage detected