update: log all file permission problems
This commit is contained in:
parent
e6c3acaa6f
commit
03018611f8
1
NEWS
1
NEWS
|
@ -1,6 +1,7 @@
|
||||||
ver 0.15.16 (2010/??/??)
|
ver 0.15.16 (2010/??/??)
|
||||||
* encoders:
|
* encoders:
|
||||||
- lame: explicitly configure the output sample rate
|
- lame: explicitly configure the output sample rate
|
||||||
|
* update: log all file permission problems
|
||||||
|
|
||||||
|
|
||||||
ver 0.15.15 (2010/11/08)
|
ver 0.15.15 (2010/11/08)
|
||||||
|
|
|
@ -254,6 +254,9 @@ stat_directory(const struct directory *directory, struct stat *st)
|
||||||
if (path_fs == NULL)
|
if (path_fs == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
ret = stat(path_fs, st);
|
ret = stat(path_fs, st);
|
||||||
|
if (ret < 0)
|
||||||
|
g_warning("Failed to stat %s: %s", path_fs, g_strerror(errno));
|
||||||
|
|
||||||
g_free(path_fs);
|
g_free(path_fs);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -270,6 +273,9 @@ stat_directory_child(const struct directory *parent, const char *name,
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
ret = stat(path_fs, st);
|
ret = stat(path_fs, st);
|
||||||
|
if (ret < 0)
|
||||||
|
g_warning("Failed to stat %s: %s", path_fs, g_strerror(errno));
|
||||||
|
|
||||||
g_free(path_fs);
|
g_free(path_fs);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue