config, gitignore: failure to access with ENOTDIR is ok
[gitweb.git] / git-compat-util.h
index 000042d79352b4a7bb789d60e5324af92f29871a..dba87da496a3b1eb25f38a917ec5c5558be0a50f 100644 (file)
@@ -604,7 +604,10 @@ 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);
 
 /* Warn on an inaccessible file that ought to be accessible */