Verbose message about cleaning directories was imprecise

Non-existent directories are now described as 'non-existent' instead of
'unwritable'.
This commit is contained in:
Keith Packard 2007-10-18 05:01:41 -07:00
parent 50124d1e48
commit 2b0d3d8af5
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}