Well, the ./ucam.sigfile varient can be fixed with this simple patch:

J.


diff -wur fortune-mod-1.99.1/fortune/fortune.c 
fortune-mod-1.99.1-fixed/fortune/fortune.c
--- fortune-mod-1.99.1/fortune/fortune.c        2004-03-05 13:29:56.000000000 
+0000
+++ fortune-mod-1.99.1-fixed/fortune/fortune.c  2006-02-22 12:21:14.000000000 
+0000
@@ -593,7 +593,7 @@
     }

     DPRINTF(1, (stderr, "trying to add file \"%s\"\n", path));
-    if ((fd = open(path, O_RDONLY)) < 0 || *path != '/')
+    if ((fd = open(path, O_RDONLY)) < 0 && *path != '/')
     {
       found = FALSE;
        if (dir == NULL && (strchr(file,'/') == NULL))


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to