]> git.wh0rd.org - fontconfig.git/commitdiff
Verbose message about cleaning directories was imprecise
authorKeith Packard <keithp@koto.keithp.com>
Thu, 18 Oct 2007 12:01:41 +0000 (05:01 -0700)
committerKeith Packard <keithp@koto.keithp.com>
Thu, 18 Oct 2007 12:01:41 +0000 (05:01 -0700)
Non-existent directories are now described as 'non-existent' instead of
'unwritable'.

fc-cache/fc-cache.c

index 7de952d677a617b182743a3059a77d28a1538638..531e8fb0bfbecb250010d9da7ff6c939ef03a451 100644 (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;
     }