1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-08 11:27:32 +03:00
systemd/src
Filipe Brandenburger d3ef6c5560 extract_first_word: Refactor allocation in empty argument case
This covers the case where an argument is an empty string, such as ''.

Instead of allocating the empty string in the individual conditions when
state == VALUE, just always allocate it at the end of state == START, at
which point we know we will have an argument.

Tested that test-util keeps passing after the refactor.

Follow up to: 14e685c29d
2015-08-30 19:48:30 -07:00
..
ac-power
activate tree-wide: whenever we fork off a foreign child process reset signal mask/handlers 2015-06-10 01:28:58 +02:00
analyze analyze: correctly draw the plot for user instances 2015-07-28 01:16:24 +03:00
ask-password
backlight fileio: consolidate write_string_file*() 2015-07-06 19:19:25 -04:00
basic extract_first_word: Refactor allocation in empty argument case 2015-08-30 19:48:30 -07:00
binfmt tree-wide: fix write_string_file() user that should not create files 2015-07-06 19:27:20 -04:00
boot tree-wide: we place the opening bracket on the same line as the function name 2015-08-27 17:48:24 +02:00
bootchart tree-wide: convert bootchart and lldp code to use clock_boottime_or_monotonic() 2015-08-03 17:40:46 +02:00
bus-proxyd Revert "sd-bus: do not connect to dbus-1 socket when kdbus is available" 2015-08-27 16:32:22 +02:00
cgls cgls: modernize cgls in preparation for unified cgroup hierarchy work 2015-08-28 02:29:56 +02:00
cgroups-agent sd-bus: introduce new sd_bus_flush_close_unref() call 2015-07-03 19:49:03 +02:00
cgtop cgtop: major modernizations 2015-08-28 02:27:29 +02:00
compat-libs
core core: add unit_dbus_interface_from_type() to unit-name.h 2015-08-28 02:10:10 +02:00
cryptsetup tree-wide: introduce mfree() 2015-07-31 19:56:38 +02:00
dbus1-generator Revert "sd-bus: do not connect to dbus-1 socket when kdbus is available" 2015-08-27 16:32:22 +02:00
debug-generator core: rework unit name validation and manipulation logic 2015-05-05 15:06:42 -07:00
delta tree-wide: whenever we fork off a foreign child process reset signal mask/handlers 2015-06-10 01:28:58 +02:00
detect-virt
escape escape: fix exit code 2015-07-01 23:46:42 -07:00
firstboot Merge branch 'hostnamectl-dot-v2' 2015-08-05 21:02:41 -04:00
fsck sd-bus: introduce new sd_bus_flush_close_unref() call 2015-07-03 19:49:03 +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 gpt-auto-generator: warn on ambiguous blkid probe 2015-08-11 23:38:19 +02:00
hibernate-resume fileio: consolidate write_string_file*() 2015-07-06 19:19:25 -04:00
hostname hostname-util: get rid of unused parameter of hostname_cleanup() 2015-08-05 20:49:21 -04:00
hwdb Revert "hwdb: actually search /run/udev/hwdb.d" 2015-06-09 11:26:06 +02:00
import Merge pull request #998 from vbatts/tar_nosparse_flag 2015-08-26 10:09:11 +02:00
initctl shared: add formats-util.h 2015-04-10 23:54:48 +02:00
journal coredumpctl: Add --directory option for reading alternate journal 2015-08-25 20:06:43 +02:00
journal-remote Bug #944: Deletion of unnecessary checks before a few calls of systemd functions 2015-08-17 10:45:30 +02:00
kernel-install 90-loaderentry.install: fixup BOOT_OPTIONS 2015-06-02 16:10:06 +02:00
libsystemd Merge pull request #1057 from poettering/resolve-drop-res-query 2015-08-27 21:39:44 +02:00
libsystemd-network sd-dhcp-server: improve predictability of leases 2015-08-28 11:05:32 +02:00
libudev libudev: device - fix typo in udev_device_get_sysattr_list_entry() 2015-06-17 22:03:34 +02:00
locale strv: convert strv_split_quotes into a generic strv_split_extract 2015-08-07 15:50:43 +00:00
login logind/systemctl: introduce SetWallMessage and --message 2015-08-25 13:52:44 +02:00
machine core: add unit_dbus_interface_from_type() to unit-name.h 2015-08-28 02:10:10 +02:00
machine-id-commit
machine-id-setup
modules-load modules-load: fix memory leak 2015-05-13 14:07:26 +02:00
network networkd: initialize tz to null 2015-08-30 03:23:07 +02:00
notify shared: add formats-util.h 2015-04-10 23:54:48 +02:00
nspawn nspawn: don't try to extract quotes from option string, glibc doesn't do that either 2015-08-29 19:43:48 +02:00
nss-myhostname hostname-util: introduce new is_gateway_hostname() call 2015-08-21 12:07:13 +02:00
nss-mymachines util: make machine_name_is_valid() a macro and move it to hostname-util.h 2015-08-24 22:46:45 +02:00
nss-resolve resolved: rework synthesizing logic 2015-08-21 12:41:08 +02:00
path
quotacheck tree-wide: whenever we fork off a foreign child process reset signal mask/handlers 2015-06-10 01:28:58 +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
remount-fs tree-wide: whenever we fork off a foreign child process reset signal mask/handlers 2015-06-10 01:28:58 +02:00
reply-password
resolve manager: close hostname fd *after* removing it epoll 2015-08-26 09:42:06 +02:00
resolve-host resolve-host: support parsing numeric interface names 2015-08-24 23:46:24 +02:00
rfkill fileio: consolidate write_string_file*() 2015-07-06 19:19:25 -04:00
run tree-wide: use free_and_strdup() 2015-07-30 13:09:01 +02:00
shared Merge pull request #1062 from poettering/cgroups-show 2015-08-28 08:56:40 +02:00
sleep fileio: consolidate write_string_file*() 2015-07-06 19:19:25 -04:00
socket-proxy
sysctl sysctl: reword warning message a bit 2015-08-05 11:02:24 +03:00
system-update-generator
systemctl Revert "systemctl: properly handle empty control group paths in "status"" 2015-08-25 20:37:54 +02:00
systemd Merge pull request #1057 from poettering/resolve-drop-res-query 2015-08-27 21:39:44 +02:00
sysusers util: Don't interpret quotes by default in extract_first_word 2015-08-07 15:50:42 +00:00
sysv-generator sysv-generator: fix coding-style 2015-07-01 13:02:58 +02:00
test test-util: fix a memleak 2015-08-25 23:52:18 +02:00
timedate time-util: add new get_timezone() call to get local timezone 2015-08-26 20:36:42 +02:00
timesync timesyncd: remove RLIMIT_NPROC 2015-07-31 15:33:49 +02:00
tmpfiles util: Don't interpret quotes by default in extract_first_word 2015-08-07 15:50:42 +00:00
tty-ask-password-agent tree-wide: introduce mfree() 2015-07-31 19:56:38 +02:00
udev udev: control - add FIXME comment to remove work-around 2015-08-27 12:57:17 +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 Bug #944: Deletion of unnecessary checks before a few calls of systemd functions 2015-08-17 10:45:30 +02:00
user-sessions user-sessions: fix write_string_file() fallout 2015-07-21 15:59:02 +02:00
vconsole tree-wide: fix write_string_file() user that should not create files 2015-07-06 19:27:20 -04:00
.gitignore
Makefile