From: Christian Brauner Date: Sat, 17 Feb 2018 18:23:24 +0000 (+0100) Subject: cgfsng: recursive_destroy() X-Git-Tag: lxc-2.0.10~287 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8051cfd53f31c132db5f916c7eb2a2394144e027;p=thirdparty%2Flxc.git cgfsng: recursive_destroy() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 8e1aed2c8..3e9fb58a5 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -1515,7 +1515,7 @@ static int recursive_destroy(char *dirname) ret = lstat(pathname, &mystat); if (ret < 0) { if (!r) - WARN("Failed to stat %s", pathname); + WARN("Failed to stat \"%s\"", pathname); r = -1; goto next; } @@ -1533,16 +1533,14 @@ static int recursive_destroy(char *dirname) ret = rmdir(dirname); if (ret < 0) { if (!r) - WARN("%s - Failed to delete \"%s\"", strerror(errno), - dirname); + WARN("%s - Failed to delete \"%s\"", strerror(errno), dirname); r = -1; } ret = closedir(dir); if (ret < 0) { if (!r) - WARN("%s - Failed to delete \"%s\"", strerror(errno), - dirname); + WARN("%s - Failed to delete \"%s\"", strerror(errno), dirname); r = -1; }