[systemd-bugs] [Bug 90794] New: [v220 regression] "Failed to unescape command line"

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun May 31 10:59:06 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=90794

            Bug ID: 90794
           Summary: [v220 regression] "Failed to unescape command line"
           Product: systemd
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: systemd-bugs at lists.freedesktop.org
          Reporter: peter at lekensteyn.nl
        QA Contact: systemd-bugs at lists.freedesktop.org

Since upgrading from v218-1 to systemd v220-3 (on Arch Linux), one of my
services fail to get parsed with the following error:

[/usr/lib/systemd/system/ssh-blocker.service:13] Failed to unescape command
line, ignoring: -/bin/sh -c "for ip in $(grep ^AllowUsers /etc/ssh/sshd_config
| grep -Po '\w+@\K[\d.]+');  do /usr/sbin/ipset -exist add ssh-whitelist $ip
timeout 0; done"

Line 13 is ([WRAP] added for clarity):
ExecStartPost=-/bin/sh -c "for ip in [WRAP]
$(grep ^AllowUsers /etc/ssh/sshd_config | [WRAP]
grep -Po '\w+@\K[\d.]+'); \
do /usr/sbin/ipset -exist add ssh-whitelist $ip timeout 0; done"

(service at
https://github.com/Lekensteyn/ssh-blocker/blob/master/systemd/ssh-blocker.service.in#L13)

Another report is from the Debian people
(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=787256):
[/lib/systemd/system/sudo.service:7] Failed to unescape command line, ignoring:
/usr/bin/find /var/lib/sudo -exec /usr/bin/touch -d @0 '{}' \073
(service file at
http://anonscm.debian.org/cgit/collab-maint/sudo.git/tree/debian/sudo.service#n7)

It is probably related to this change (nowhere mentioned in NEWS...):

    commit 4034a06ddb82ec9868cd52496fef2f5faa25575f (tags/v220~644)
    Author: Lennart Poettering <lennart at poettering.net>
    Date:   Mon Mar 23 18:55:36 2015 +0700

        util: rework word parsing and c unescaping code

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150531/402621d2/attachment-0001.html>


More information about the systemd-bugs mailing list