Merge branch 'jn/warn-on-inaccessible-loosen'
[git.git] / git-compat-util.h
index 9661bc9f7371fec67627151a04e2a7a5094065fc..2cecf56eb367ccd866250b7634c738187d6e2261 100644 (file)
@@ -654,8 +654,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);