Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1279936
Summary: | Redundant argument in sprintf (postfix) | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Henrique Martins <fedora> | ||||
Component: | logwatch | Assignee: | Jan Synacek <jsynacek> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 23 | CC: | alanh, bugzilla.redhat.com, dominik, don.allen, flast, frank, herrold, horsley1953, h.reindl, jsynacek, jwadodson, kim-rh, laurent.rineau__fedora, long, rene, rkpg, sauchter, varekova | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | logwatch-7.4.1-6.20150731svn293.fc23 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-03-20 02:24:51 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Henrique Martins
2015-11-10 14:25:25 UTC
*** Bug 1282749 has been marked as a duplicate of this bug. *** After upgrading F22 to F23 I also get about the same error, in my case it is 5 copies of:
Redundant argument in sprintf at /usr/share/logwatch/scripts/services/postfix line 1382, <> line 48.
With:
postfix-3.0.3-1.fc23.x86_64
logwatch-7.4.1-5.20150731svn293.fc23.noarch
Note that I don't have the certs dir:
>ls -la /etc/postfix/certs
ls: cannot access /etc/postfix/certs: No such file or directory
Only alteration made to postfix is settings:
# rpm -V postfix
S.5....T. c /etc/postfix/main.cf
Hope this helps.
Created attachment 1107203 [details]
patches logwatch script for postfix
Attached patch fixes this for the logs on my machines. as they exist today.
May or not break other cases
I applied the patch yesterday and then waited for the regular logwatch run. The patch seems to have worked. There are no errors showing in the e-mail from the daily run of logwatch. Thanks for the patch! Works fine for me as well (Fedora 23): # logwatch --service postfix ################### Logwatch 7.4.1 (09/23/14) #################### Processing Initiated: Sun Dec 20 09:16:07 2015 Date Range Processed: yesterday ( 2015-Dec-19 ) Period is day. Detail Level of Output: 0 Type of Output/Format: stdout / text Logfiles for Host: moria ################################################################## --------------------- Postfix Begin ------------------------ 9.601K Bytes accepted 9,831 8.874K Bytes delivered 9,087 ======== ================================================== 3 Accepted 100.00% -------- -------------------------------------------------- 3 Total 100.00% ======== ================================================== 4 Removed from queue 4 2 Delivered 2 2 Bounced (local) 2 1 Notifications sent 1 ---------------------- Postfix End ------------------------- ###################### Logwatch End ######################### at least a scratchbuild as well as a comment for https://bugzilla.redhat.com/show_bug.cgi?id=1273925 from the pakcage maintainer would be fine... Silence is golden on silent night/season, I guess. I posted my patch to the logwatch on sourceforge, which may be RH's upstream, but there's not much traffic over there either I had the same issue, but your patch fixed it like a charm Henrique. Loads of grateful thanks! Veliz 2016! Fixed upstream https://sourceforge.net/p/logwatch/bugs/48 should eventually make it here. it's terrible that with the defaults switching 3 months later logwatch bugs are still not fixed in Fedora and bugs like this and https://bugzilla.redhat.com/show_bug.cgi?id=1273925 leaves the bad taste the the more and more degraded usefulness is prepared to have an excuse drop it and decalre journalctl to the new log world Meanwhile, sshd introduced a new logwatch problem because it changed the format of "Disconnected from" messages. I see a patch has been sent to upstream logwatch for this problem as well. It sure would be nice to get a logwatch update. *** Bug 1305680 has been marked as a duplicate of this bug. *** logwatch-7.4.1-6.20150731svn293.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-edde0e9096 logwatch-7.4.1-6.20150731svn293.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-edde0e9096 Something seems funny. Is this the rpm I'm supposed to get? https://kojipkgs.fedoraproject.org//packages/logwatch/7.4.1/6.20150731svn293.fc23/noarch/logwatch-7.4.1-6.20150731svn293.fc23.noarch.rpm This rpm doesn't seem to have neither the patch for this bug nor the patch for bug 1237339. My logwatch has all kind of unescaped left brace and redudant scanf args warnings! Not sure what happened but dnf installed 7.4.1-3.20140924svn242.fc23 not sure how or where from, as I don't have that file in my system. A reinstall of the rpm fixed the problem and now it is working! logwatch-7.4.1-6.20150731svn293.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. |