1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-08 11:27:32 +03:00
systemd/src
Zbigniew Jędrzejewski-Szmek ba774317ac Treat a trailing backslash as an error
Commit a2a5291b3f changed the parser to reject unfinished quoted
strings. Unfortunately it introduced an error where a trailing
backslash would case an infinite loop. Of course this must fixed, but
the question is what to to instead. Allowing trailing backslashes and
treating them as normal characters would be one option, but this seems
suboptimal. First, there would be inconsistency between handling of
quoting and of backslashes. Second, a trailing backslash is most
likely an error, at it seems better to point it out to the user than
to try to continue.

Updated rules:
ExecStart=/bin/echo \\ → OK, prints a backslash
ExecStart=/bin/echo \ → error
ExecStart=/bin/echo "x → error
ExecStart=/bin/echo "x"y → error
2014-12-18 19:26:21 -05:00
..
ac-power treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
activate treewide: another round of simplifications 2014-11-28 19:57:32 +01:00
analyze treewide: more log_*_errno + return simplifications 2014-11-28 18:24:30 +01:00
ask-password ask-password: Add --echo to enable echoing the user input 2014-10-05 15:29:41 -04:00
backlight treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
binfmt treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
boot Unify parse_argv style 2014-08-03 21:46:07 -04:00
bootchart bootchart: escape non printable process name 2014-12-04 02:10:41 +01:00
bus-proxyd bus-proxy: cloning smack label 2014-12-09 18:23:24 +01:00
cgls treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
cgroups-agent treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
cgtop treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
compat-libs build-sys: build compat libs from sources, avoiding the not generally available ifunc wrapping 2014-02-22 21:28:55 +01:00
console treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
core tree-wide: make condition_free_list return NULL 2014-12-18 19:26:21 -05:00
cryptsetup cryptsetup-generator: Add support for naming luks devices on kernel cmdline 2014-12-05 01:29:45 +01:00
dbus1-generator treewide: another round of simplifications 2014-11-28 19:57:32 +01:00
debug-generator treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
delta delta: fix output alignment of [REDIRECTED] entries 2014-12-14 12:54:17 -05:00
detect-virt treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
efi-boot-generator treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
escape Unify parse_argv style 2014-08-03 21:46:07 -04:00
firstboot treewide: another round of simplifications 2014-11-28 19:57:32 +01:00
fsck sd-bus: move common errors src/shared/bus-errors.h → src/libsystemd/sd-bus/bus-common-errors.h 2014-12-10 19:07:48 +01:00
fstab-generator fstab-generator: Allow mount.usr without mount.usrflags, honor rw/ro 2014-12-09 02:24:26 +01:00
getty-generator treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
gpt-auto-generator gpt-auto-generator: make use of new btrfs-util.h APIs 2014-12-12 13:35:32 +01:00
gudev gudev: replace regex with sym file 2014-06-21 16:25:15 +02:00
hibernate-resume treewide: another round of simplifications 2014-11-28 19:57:32 +01:00
hostname util: when using basename() for creating temporary files, verify the resulting name is actually valid 2014-12-12 13:35:32 +01:00
hwdb systemd-hwdb: introduce new tool 2014-12-18 15:37:27 +01:00
initctl treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
journal journal: next_with_matches() now does not need a mapped object as input 2014-12-18 14:44:34 +01:00
journal-remote wrap a few *_FOREACH macros in curly braces 2014-12-12 21:57:44 +01:00
kernel-install kernel-install/90-loaderentry.install: fix cmdline parsing 2014-11-01 14:39:48 -04:00
libsystemd networkd: add FDB support 2014-12-18 15:28:16 +01:00
libsystemd-network use correct format types 2014-12-11 21:47:06 +01:00
libsystemd-terminal tree-wide: use our memset() macros instead of memset() itself 2014-12-11 16:58:45 +01:00
libudev udev: builtin-hwdb - port to sd-hwdb 2014-12-15 20:40:09 +01:00
locale util: when using basename() for creating temporary files, verify the resulting name is actually valid 2014-12-12 13:35:32 +01:00
login use correct format types 2014-12-11 21:47:06 +01:00
machine machinectl: add new commands for copying files from/to containers 2014-12-18 01:36:28 +01:00
machine-id-commit machine-id-commit: Introduce machine-id-commit binary 2014-12-03 03:41:19 +01:00
machine-id-setup Unify parse_argv style 2014-08-03 21:46:07 -04:00
modules-load treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
network networkd: add FDB support 2014-12-18 15:28:16 +01:00
notify treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
nspawn machinectl: implement "bind" command to create additional bind mounts from host to container during runtime 2014-12-18 01:36:28 +01:00
nss-myhostname nss-myhostname: also recognize "gateway." 2014-12-16 00:30:34 -05:00
nss-mymachines nss: remove dead code 2014-09-19 00:15:39 +02:00
nss-resolve sd-bus: move common errors src/shared/bus-errors.h → src/libsystemd/sd-bus/bus-common-errors.h 2014-12-10 19:07:48 +01:00
path treewide: yet more log_*_errno + return simplifications 2014-11-28 18:56:16 +01:00
python-systemd python-systemd: avoid hitting assert in __exit__ 2014-10-14 08:35:16 -04:00
quotacheck delta: diff returns 1 when files differ, ignore this 2014-11-29 11:10:51 -05:00
random-seed treewide: sanitize loop_write 2014-12-09 21:36:08 -05: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 treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
reply-password treewide: another round of simplifications 2014-11-28 19:57:32 +01:00
resolve networkd/resolved: correct spacing near eol in code comments 2014-12-11 15:04:43 +01:00
resolve-host sd-bus: move common errors src/shared/bus-errors.h → src/libsystemd/sd-bus/bus-common-errors.h 2014-12-10 19:07:48 +01:00
rfkill rfkill: rework how we generate file names from rfkill devices 2014-12-03 02:04:55 +01:00
run run: introduce timer support option 2014-12-09 18:19:40 +01:00
shared Treat a trailing backslash as an error 2014-12-18 19:26:21 -05:00
shutdownd treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
sleep sleep: drop redundant MESSAGE= prefix 2014-12-09 03:58:20 +01:00
socket-proxy treewide: another round of simplifications 2014-11-28 19:57:32 +01:00
sysctl treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
system-update-generator treewide: another round of simplifications 2014-11-28 19:57:32 +01:00
systemctl systemctl: fix argument handling when invoked as "shutdown" 2014-12-16 00:30:34 -05:00
systemd networkd: add FDB support 2014-12-18 15:28:16 +01:00
sysusers copy: use btrfs reflinking only whe we know we copy full files 2014-12-12 17:30:25 +01:00
sysv-generator core: warn and ignore SysVStartPriority= 2014-11-30 19:10:40 -05:00
test Treat a trailing backslash as an error 2014-12-18 19:26:21 -05:00
timedate sd-bus: move common errors src/shared/bus-errors.h → src/libsystemd/sd-bus/bus-common-errors.h 2014-12-10 19:07:48 +01:00
timesync timesyncd: minor simplification 2014-11-30 22:58:55 +01:00
tmpfiles tmpfiles, man: Add xattr support to tmpfiles 2014-12-04 20:21:45 +01:00
tty-ask-password-agent treewide: sanitize loop_write 2014-12-09 21:36:08 -05:00
udev systemd-hwdb: introduce new tool 2014-12-18 15:37:27 +01:00
update-done udev,update-done: more log_xyz_errno() conversions 2014-11-28 16:32:26 +01:00
update-utmp treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
vconsole treewide: sanitize loop_write 2014-12-09 21:36:08 -05:00
.gitignore Add test coverage and generate report with lcov 2013-07-13 21:56:33 -04:00
Makefile