Source: fontconfig
Version: 2.12.1-0.1
Severity: normal
Tags: patch

Hi,

fc-cache returns with exit code 0 if there were 256 errors as it increments
a "ret" int that is subsquently returned from main(). This also occurs with
512 errors, etc.

Patch attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff --git a/fc-cache/fc-cache.c b/fc-cache/fc-cache.c
index 0336073..800e74c 100644
--- a/fc-cache/fc-cache.c
+++ b/fc-cache/fc-cache.c
@@ -408,5 +408,5 @@ main (int argc, char **argv)
        sleep (2);
     if (verbose)
        printf ("%s: %s\n", argv[0], ret ? "failed" : "succeeded");
-    return ret;
+    return (ret == 0) ? 0 : 1;
 }

Reply via email to