fetch-pack: eliminate spurious error messages
[gitweb.git] / git-compat-util.h
index 34f040f59551c13b5e7c72bab12b8082b37a03ab..fd732d7243a9266302751189c32a57fd441a671d 100644 (file)
@@ -609,6 +609,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. */
+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);