1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 08:26:52 +03:00
systemd/src
Daniel Mack 22874a348f load-fragment: use UNESCAPE_RELAX flag to parse exec directives
The cunescape() helper function used to handle unknown escaping sequences
gracefully by copying them over verbatim.

Commit 527b7a42 ("util: rework cunescape(), improve error handling") added
a flag to make that behavior optional, and changed to default to error out
with -EINVAL otherwise.

However, config_parse_exec(), which is used to parse the
Exec{Start,Stop}{Post,Pre,} directives of unit files, was not changed along
with that commit, which means that directives with improperly escaped
command line strings are no longer parsed.

Relevant bugreports include:

  https://bugs.freedesktop.org/show_bug.cgi?id=90794
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=787256

Fix this by passing UNESCAPE_RELAX to config_parse_exec() in order to
restore the original behavior.
2015-06-01 18:08:44 +02:00
..
ac-power treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
activate remove unused includes 2015-02-23 23:53:42 +01:00
analyze core: rename SystemdRunningAs to ManagerRunningAs 2015-05-11 22:51:49 +02:00
ask-password remove unused includes 2015-02-23 23:53:42 +01:00
backlight backlight: let udev properties override clamping 2015-02-02 17:18:40 +01:00
binfmt remove unused includes 2015-02-23 23:53:42 +01:00
boot bootctl: fix an error check 2015-05-23 13:03:30 +02:00
bootchart bootchart: kill newline characters from log_error_errno() calls 2015-04-24 21:51:43 +02:00
bus-proxyd bus-proxy: fix GetConnectionSELinuxSecurityContext() return value 2015-05-21 21:24:55 +02:00
cgls remove unused includes 2015-02-23 23:53:42 +01:00
cgroups-agent treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
cgtop shared: add terminal-util.[ch] 2015-04-11 00:34:02 +02:00
compat-libs #pragma once here and there 2015-01-23 09:30:44 -05:00
console console: use signal-util.h and reorder includes 2015-05-29 21:12:26 +02:00
core load-fragment: use UNESCAPE_RELAX flag to parse exec directives 2015-06-01 18:08:44 +02:00
cryptsetup Use fflush_and_check() in more places 2015-05-16 18:11:32 -04:00
dbus1-generator bus: don't switch to kdbus if not requested 2015-05-06 18:21:51 +02:00
debug-generator core: rework unit name validation and manipulation logic 2015-05-05 15:06:42 -07:00
delta shared: add terminal-util.[ch] 2015-04-11 00:34:02 +02:00
detect-virt remove unused includes 2015-02-23 23:53:42 +01:00
efi-boot-generator path-util: Change path_is_mount_point() symlink arg from bool to flags 2015-05-29 17:42:44 +02:00
escape core: rework unit name validation and manipulation logic 2015-05-05 15:06:42 -07:00
firstboot util: split all hostname related calls into hostname-util.c 2015-05-18 17:10:07 +02:00
fsck util: split out signal-util.[ch] from util.[ch] 2015-05-29 20:14:11 +02:00
fstab-generator swap: use swapon -o 2015-05-25 17:06:15 +02:00
getty-generator core: rework unit name validation and manipulation logic 2015-05-05 15:06:42 -07:00
gpt-auto-generator path-util: Change path_is_mount_point() symlink arg from bool to flags 2015-05-29 17:42:44 +02:00
gudev treewide: Correct typos and spell plural of bus consistent 2015-05-11 15:51:30 +02:00
hibernate-resume core: rework unit name validation and manipulation logic 2015-05-05 15:06:42 -07:00
hostname hostname: Allow comments in /etc/hostname 2015-05-19 12:18:08 +02:00
hwdb remove unused includes 2015-02-23 23:53:42 +01:00
import util: split out signal-util.[ch] from util.[ch] 2015-05-29 20:14:11 +02:00
initctl shared: add formats-util.h 2015-04-10 23:54:48 +02:00
journal util: split out signal-util.[ch] from util.[ch] 2015-05-29 20:14:11 +02:00
journal-remote util: split out signal-util.[ch] from util.[ch] 2015-05-29 20:14:11 +02:00
kernel-install kernel-install/90-loaderentry.install: fix cmdline parsing 2014-11-01 14:39:48 -04:00
libsystemd sd-device: ensure update_properties_buf() is a noop on failure 2015-06-01 16:28:58 +02:00
libsystemd-network json: minor style fixes 2015-05-21 23:30:37 +02:00
libsystemd-terminal terminal: fix include ordering 2015-05-30 00:02:29 +02:00
libudev udevd: manager - move a few global variables into the Manager object 2015-05-12 19:16:43 +02:00
locale treewide: Correct typos and spell plural of bus consistent 2015-05-11 15:51:30 +02:00
login util: split out signal-util.[ch] from util.[ch] 2015-05-29 20:14:11 +02:00
machine util: split out signal-util.[ch] from util.[ch] 2015-05-29 20:14:11 +02:00
machine-id-commit machine-id-commit: simplifications 2015-03-10 18:56:56 +01:00
machine-id-setup remove unused includes 2015-02-23 23:53:42 +01:00
modules-load modules-load: fix memory leak 2015-05-13 14:07:26 +02:00
network networkctl: fix uninitialized variable 2015-05-30 11:19:36 +02:00
notify shared: add formats-util.h 2015-04-10 23:54:48 +02:00
nspawn util: split out signal-util.[ch] from util.[ch] 2015-05-29 20:14:11 +02:00
nss-myhostname util: split all hostname related calls into hostname-util.c 2015-05-18 17:10:07 +02:00
nss-mymachines nss: remove dead code 2014-09-19 00:15:39 +02:00
nss-resolve remove unused includes 2015-02-23 23:53:42 +01:00
path tree-wide: there is no ENOTSUP on linux 2015-03-13 14:10:39 +01:00
python-systemd python-systemd: fix is_socket_inet to cope with ports 2015-04-12 10:20:36 -04:00
quotacheck shared: add process-util.[ch] 2015-04-10 23:54:49 +02:00
random-seed random-seed: minor cleanups, in particular when it comes to logging 2015-04-21 18:08:09 +02:00
rc-local-generator treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
remount-fs util: split out signal-util.[ch] from util.[ch] 2015-05-29 20:14:11 +02:00
reply-password remove unused includes 2015-02-23 23:53:42 +01:00
resolve util: split out signal-util.[ch] from util.[ch] 2015-05-29 20:14:11 +02:00
resolve-host remove unused includes 2015-02-23 23:53:42 +01:00
rfkill rfkill: rework how we generate file names from rfkill devices 2014-12-03 02:04:55 +01:00
run util: split out signal-util.[ch] from util.[ch] 2015-05-29 20:14:11 +02:00
shared conf-parser: parsing error logs should show a type not a vartype 2015-05-30 12:24:16 +02:00
sleep remove unused includes 2015-02-23 23:53:42 +01:00
socket-proxy remove unused includes 2015-02-23 23:53:42 +01:00
sysctl sysctl: don't propagate ENOENT sysctl options 2015-04-24 19:56:47 +02:00
system-update-generator remove unused includes 2015-02-23 23:53:42 +01:00
systemctl util: split out signal-util.[ch] from util.[ch] 2015-05-29 20:14:11 +02:00
systemd sd-bus,sd-event: make public APIs 2015-05-22 14:32:51 +02:00
sysusers util: add generic calls for prefixing a root directory to a path 2015-05-13 17:42:10 +02:00
sysv-generator core: rename SystemdRunningAs to ManagerRunningAs 2015-05-11 22:51:49 +02:00
test test-fdset: add more tests 2015-05-30 11:19:35 +02:00
timedate timedate: fix memory leak in timedated 2015-05-15 20:00:22 +02:00
timesync util: split out signal-util.[ch] from util.[ch] 2015-05-29 20:14:11 +02:00
tmpfiles tmpfiles: use lstat() instead of stat() when checking whether a file system object already exists 2015-05-15 21:48:20 +02:00
tty-ask-password-agent util: split out signal-util.[ch] from util.[ch] 2015-05-29 20:14:11 +02:00
udev udevd: open sockets before forking 2015-05-31 23:58:39 +02:00
update-done update-done: ignore nanosecond file timestamp components, they are not reliable 2015-04-27 17:25:57 +02:00
update-utmp shared: add formats-util.h 2015-04-10 23:54:48 +02:00
user-sessions user-sessions: move into own subdir and build independently of logind 2015-02-27 17:28:03 -05:00
vconsole shared: add terminal-util.[ch] 2015-04-11 00:34:02 +02:00
.gitignore
Makefile