Package: hylafax-server
Version: 4.3.0-7
Severity: normal

hi,

Problem is that awk throws an error: 
"sh: docq/doc1528.tif: Permission denied"
when trying to get filesizes.
This might be unimportant nowadays as most if not all users switched to the 
new (since 4.2.1) notify.

Nevertheless, here's an obvious patch (we know files[i] will never 
contain ' '):

#---[notify.awk.diff]---------------
--- /var/tmp/hylafax-4.3.0-1/util/notify.awk    Mon Aug 16 14:58:22 2004
+++ /var/tmp/hylafax-4.3.0,pp/util/notify.awk   Tue Aug 29 01:51:18 2006
@@ -99,9 +99,10 @@
            print ""
            printf "%-20s %8s %s\n", "Filename", "Size", "Type";
            for (i = 0; i < nfiles; i++) {
-               "wc -c " files[i] | getline;
+               cmd="wc -c "files[i];
+               cmd | getline;
                printf "%-20s %8d %s\n", files[i], $1, docType(files[i]);
-               close("wc -c " files[i]);
+               close(cmd);
             }
        }
     } else if (jobType == "pager") {
#-----------------------------------


-- paolo



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

Reply via email to