Le 31/10/2013 14:47, Boris Pek a écrit :
Hi Barry,

Package: awffull
Version: 3.10.2-4
Severity: important
Tags: patch

I get the following error message:

/etc/cron.daily/awffull:
Use of "Really Quiet (-Q)" has been deprecated.
Initially processed default config file: /etc/awffull/awffull.conf
awffull 3.10.2 (Linux 3.11-1-amd64) English
Error: Can't open log file 0
ERROR: Running awffull, exit status: 1

obviously /etc/cron.daily/awffull is not updated to the current command line
parameters

...

As I see in debian/changelog you have already fixed this problem (see #496968).
Could you look at new bug report?

I just upgraded to Jessie. I get the exact same bug.

$ dpkg -l awffull
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  awffull        3.10.2-4     i386         web server log analysis program


$ sudo /etc/cron.daily/awffull
Use of "Really Quiet (-Q)" has been deprecated.
Initially processed default config file: /etc/awffull/awffull.conf
awffull 3.10.2 (Linux 2.6.32-042stab106.4) French
Error: Can't open log file 0
ERROR: Running awffull, exit status: 1


I think we have two problems in the /etc/cron.daily/awffull script:

1. it uses -Q that has been removed from the arguments list

2. is uses -v 0 to set the log level to 0. But that confuses awffull and 0 is 
taken as a file name. -v does not take any argument.


You can easily reproduce the output with:

$ awffull -v 0 foobar -Q
Use of "Really Quiet (-Q)" has been deprecated.
Initially processed default config file: /etc/awffull/awffull.conf
awffull 3.10.2 (Linux 2.6.32-042stab106.4) French
Error: Can't open log file 0

I guess the correct command line should be:
$ awffull foobar
Error: Can't open log file foobar

Proposed patch ("-v 0" and "-Q" removed):
--- debian/awffull.cron.daily   2013-10-18 19:35:33.000000000 +0200
+++ /etc/cron.daily/awffull     2015-04-30 14:43:35.940490933 +0200
@@ -30,7 +30,7 @@
   [ -w ${OUTDIR} ] || { echo "ERROR: OutputDir not writable: ${OUTDIR}"; 
continue; };
# Run Really quietly, exit with status code if !0
-  ${AWFFULL} -v 0 ${i} -Q || { echo "ERROR: Running awffull, exit status: $?"; 
continue; };
+  ${AWFFULL} ${i} || { echo "ERROR: Running awffull, exit status: $?"; 
continue; };
   RET=$?;
# Non rotated log file
@@ -43,7 +43,7 @@
     # readable ?
     [ -r "${NLOGFILE}" ] || { echo "WARNING: Non-rotated LogFile is not readable: 
${NLOGFILE}"; continue; };
- ${AWFFULL} -v 0 ${i} -Q ${NLOGFILE};
+    ${AWFFULL} ${i} ${NLOGFILE};
     RET=$?;
   fi;
 done;


--
Dr. Ludovic Rousseau


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to