From: Keith Packard Date: Thu, 18 Oct 2007 12:01:41 +0000 (-0700) Subject: Verbose message about cleaning directories was imprecise X-Git-Tag: 2.4.91~30 X-Git-Url: https://git.wh0rd.org/?p=fontconfig.git;a=commitdiff_plain;h=2b0d3d8af5a83604972e4e0fe80802e448d6dd11 Verbose message about cleaning directories was imprecise Non-existent directories are now described as 'non-existent' instead of 'unwritable'. --- 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; }