fts_read returns NULL when there are no more members in the hierarchy, so we should not print a warning.
Signed-off-by: Stanislav Fomichev <stfomic...@yandex-team.ru> --- src/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.c b/src/api.c index 3fa604a2afe2..790a1588038d 100644 --- a/src/api.c +++ b/src/api.c @@ -174,7 +174,7 @@ static int cg_chown_recursive(char **path, uid_t owner, gid_t group) FTSENT *ent; ent = fts_read(fts); if (!ent) { - cgroup_warn("Warning: fts_read failed\n"); + cgroup_dbg("Warning: fts_read failed for %s\n", *path); break; } ret = cg_chown_file(fts, ent, owner, group); -- 1.8.1.2 ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel