aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-01-31 07:19:34 +0100
committerMax Kellermann <max@duempel.org>2011-01-31 09:39:24 +0100
commit03018611f8b9d7ed6d55ee45ccf2b69958c05caf (patch)
treebfd3c1e44f57c0259d7674c867983e9f8b0fa4cb /src
parente6c3acaa6fc6f2003b118a93306a8508e13f0fb1 (diff)
downloadmpd-03018611f8b9d7ed6d55ee45ccf2b69958c05caf.tar.gz
mpd-03018611f8b9d7ed6d55ee45ccf2b69958c05caf.tar.xz
mpd-03018611f8b9d7ed6d55ee45ccf2b69958c05caf.zip
update: log all file permission problems
Diffstat (limited to 'src')
-rw-r--r--src/update.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/update.c b/src/update.c
index d5c9779c8..9a1e7d29b 100644
--- a/src/update.c
+++ b/src/update.c
@@ -254,6 +254,9 @@ stat_directory(const struct directory *directory, struct stat *st)
if (path_fs == NULL)
return -1;
ret = stat(path_fs, st);
+ if (ret < 0)
+ g_warning("Failed to stat %s: %s", path_fs, g_strerror(errno));
+
g_free(path_fs);
return ret;
}
@@ -270,6 +273,9 @@ stat_directory_child(const struct directory *parent, const char *name,
return -1;
ret = stat(path_fs, st);
+ if (ret < 0)
+ g_warning("Failed to stat %s: %s", path_fs, g_strerror(errno));
+
g_free(path_fs);
return ret;
}