X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=git-compat-util.h;h=590d5d3188aed8f3a2b0b7050f2502b28cb4f5fa;hb=7ed1690c343dc16dfd5a5493589cbf74d503c238;hp=2e79b8a2f379d7c72a0934b36c7538db2143c722;hpb=df54d595662411ad8eeaa09e80c781c82943b452;p=git.git diff --git a/git-compat-util.h b/git-compat-util.h index 2e79b8a2f..590d5d318 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -637,8 +637,12 @@ int rmdir_or_warn(const char *path); */ int remove_or_warn(unsigned int mode, const char *path); -/* Call access(2), but warn for any error besides ENOENT. */ +/* + * Call access(2), but warn for any error except "missing file" + * (ENOENT or ENOTDIR). + */ int access_or_warn(const char *path, int mode); +int access_or_die(const char *path, int mode); /* Warn on an inaccessible file that ought to be accessible */ void warn_on_inaccessible(const char *path);