warn_on_inaccessible(): a helper to warn on inaccessible paths
[git.git] / git-compat-util.h
index 5a520e2b73ba6e28d38f677d9bb1b585ce9b254a..000042d79352b4a7bb789d60e5324af92f29871a 100644 (file)
@@ -607,6 +607,9 @@ int remove_or_warn(unsigned int mode, const char *path);
 /* Call access(2), but warn for any error besides ENOENT. */
 int access_or_warn(const char *path, int mode);
 
+/* Warn on an inaccessible file that ought to be accessible */
+void warn_on_inaccessible(const char *path);
+
 /* Get the passwd entry for the UID of the current process. */
 struct passwd *xgetpwuid_self(void);