Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1006661: exim4-base: Syntax Error in exiqgrep

38 views
Skip to first unread message

Paul Saunders

unread,
Mar 1, 2022, 2:50:03 PM3/1/22
to
Package: exim4-base
Version: 4.95-4
Severity: normal

Dear Maintainer,

When running /usr/sbin/exiqgrep, a Syntax Error is reported, and the
program quits:

$ /usr/sbin/exiqgrep
syntax error at /usr/sbin/exiqgrep line 56, near ") {"
syntax error at /usr/sbin/exiqgrep line 56, near ";}"
syntax error at /usr/sbin/exiqgrep line 57, near ";}"
syntax error at /usr/sbin/exiqgrep line 58, near ";}"
Execution of /usr/sbin/exiqgrep aborted due to compilation errors.

Looking at the code, the problem appears to be that line 56 is of the
form:

if (!getops(...) { ...}

The unbalanced parentheses are the problem. Adding a second closing
bracket after the getopts call fixes the issue.


-- Package-specific info:
Exim version 4.95 #2 built 19-Feb-2022 13:49:28
Copyright (c) University of Cambridge, 1995 - 2018
(c) The Exim Maintainers and contributors in ACKNOWLEDGMENTS file, 2007 - 2020
Berkeley DB: Berkeley DB 5.3.28: (September 9, 2013)
Support for: crypteq iconv() IPv6 PAM Perl Expand_dlfunc GnuTLS TLS_resume move_frozen_messages Content_Scanning DANE DKIM DNSSEC Event I18N OCSP PIPE_CONNECT PRDR PROXY Experimental_Queue_Ramp SOCKS SPF SRS TCP_Fast_Open
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmjz dbmnz dnsdb dsearch ldap ldapdn ldapm mysql nis nis0 passwd pgsql sqlite
Authenticators: cram_md5 cyrus_sasl dovecot external plaintext spa tls
Routers: accept dnslookup ipliteral iplookup manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Malware: f-protd f-prot6d drweb fsecure sophie clamd avast sock cmdline
Fixed never_users: 0
Configure owner: 0:0
Size of off_t: 8
Configuration file search path is /etc/exim4/exim4.conf:/var/lib/exim4/config.autogenerated
Configuration file is /var/lib/exim4/config.autogenerated

-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (550, 'testing'), (500, 'stable-updates'), (450, 'unstable'), (450, 'stable'), (445, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.16.0-1-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages exim4-base depends on:
ii adduser 3.118
ii cron [cron-daemon] 3.0pl1-137
ii debconf [debconf-2.0] 1.5.79
ii exim4-config [exim4-config-2] 4.95-4
ii libc6 2.33-7
ii libdb5.3 5.3.28+dfsg1-0.8
ii lsb-base 11.1.0
ii netbase 6.3
ii systemd-sysv 250.3-2

Versions of packages exim4-base recommends:
ii bsd-mailx [mailx] 8.1.2-0.20180807cvs-2
ii psmisc 23.4-2

Versions of packages exim4-base suggests:
ii bsd-mailx [mail-reader] 8.1.2-0.20180807cvs-2
pn exim4-doc-html | exim4-doc-info <none>
pn eximon4 <none>
ii file 1:5.41-2
ii gnutls-bin 3.7.3-4+b1
ii mutt [mail-reader] 2.1.4-1
ii openssl 1.1.1m-1
ii spf-tools-perl 2.9.0-5
ii swaks 20201014.0-2
ii thunderbird [mail-reader] 1:91.6.1-1

-- debconf information:
exim4/purge_spool: false
exim4-base/drec:

Sergio Durigan Junior

unread,
Mar 30, 2022, 6:10:03 PM3/30/22
to
Control: tags -1 + patch

On Tuesday, March 01 2022, Paul Saunders wrote:

> Dear Maintainer,
>
> When running /usr/sbin/exiqgrep, a Syntax Error is reported, and the
> program quits:
>
> $ /usr/sbin/exiqgrep
> syntax error at /usr/sbin/exiqgrep line 56, near ") {"
> syntax error at /usr/sbin/exiqgrep line 56, near ";}"
> syntax error at /usr/sbin/exiqgrep line 57, near ";}"
> syntax error at /usr/sbin/exiqgrep line 58, near ";}"
> Execution of /usr/sbin/exiqgrep aborted due to compilation errors.
>
> Looking at the code, the problem appears to be that line 56 is of the
> form:
>
> if (!getops(...) { ...}
>
> The unbalanced parentheses are the problem. Adding a second closing
> bracket after the getopts call fixes the issue.

This has been fixed upstream by:

https://git.exim.org/exim.git/commitdiff/42ed39da5af85552a35626348bb77e5576e18aa4

--
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
https://sergiodj.net/
signature.asc
0 new messages