From 2b0d3d8af5a83604972e4e0fe80802e448d6dd11 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 18 Oct 2007 05:01:41 -0700 Subject: [PATCH] Verbose message about cleaning directories was imprecise Non-existent directories are now described as 'non-existent' instead of 'unwritable'. --- fc-cache/fc-cache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fc-cache/fc-cache.c b/fc-cache/fc-cache.c index 7de952d..531e8fb 100644 --- a/fc-cache/fc-cache.c +++ b/fc-cache/fc-cache.c @@ -267,7 +267,8 @@ cleanCacheDirectory (FcConfig *config, FcChar8 *dir, FcBool verbose) if (access ((char *) dir, W_OK|X_OK) != 0) { if (verbose) - printf ("%s: not cleaning unwritable cache directory\n", dir); + printf ("%s: not cleaning %s cache directory\n", dir, + access ((char *) dir, F_OK) == 0 ? "unwritable" : "non-existent"); FcStrFree (dir_base); return FcTrue; } -- 2.39.5