projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
user-manual: use -o latest.tar.gz to create a gzipped tarball
[git.git]
/
git-compat-util.h
diff --git
a/git-compat-util.h
b/git-compat-util.h
index 2e79b8a2f379d7c72a0934b36c7538db2143c722..590d5d3188aed8f3a2b0b7050f2502b28cb4f5fa 100644
(file)
--- 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);
*/
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_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);
/* Warn on an inaccessible file that ought to be accessible */
void warn_on_inaccessible(const char *path);