summaryrefslogtreecommitdiff
path: root/manifest.c
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2015-03-19 21:27:26 +0100
committerJoel Rosdahl <joel@rosdahl.net>2015-03-19 21:27:26 +0100
commit8deb0011b98ad8e61fe8047566608174190ae58a (patch)
tree14f0e5b5b35e6bbb99b8fc74ad84aefc1acccef9 /manifest.c
parenta8c9c69eded0626379cb8a5ada76600225c88e6c (diff)
downloadccache-8deb0011b98ad8e61fe8047566608174190ae58a.tar.gz
Introduce logging wrappers for stat/lstat/fstat functions
Diffstat (limited to 'manifest.c')
-rw-r--r--manifest.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/manifest.c b/manifest.c
index 6eb53fd9..1dcf83f6 100644
--- a/manifest.c
+++ b/manifest.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2009-2014 Joel Rosdahl
+ * Copyright (C) 2009-2015 Joel Rosdahl
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
@@ -393,8 +393,7 @@ verify_object(struct conf *conf, struct manifest *mf, struct object *obj,
st = hashtable_search(hashed_files, path);
if (!st) {
struct stat file_stat;
- if (stat(path, &file_stat) == -1) {
- cc_log("Failed to stat include file %s: %s", path, strerror(errno));
+ if (x_stat(path, &file_stat) != 0) {
return 0;
}
st = x_malloc(sizeof(*st));