Systemd/src
Lennart Poettering 2d49a208f8 parse-util: really refuse parsing negative values as positive ones, even on x86-32
strtoull() doesn't make it particularly easy to detect passed-in
negative numbers, as it silently converts them to positive ones without
generating any error. Since we are not interested in negative values we
should hence explicitly filter them out by looking at the string
directly and returning ERANGE if we see a leading "-".

Fixes: #1829
2015-11-10 17:36:52 +01:00
..
ac-power treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
activate util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
analyze util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
ask-password strv: Add _cleanup_strv_free_erase_ and _cleanup_string_free_erase_ 2015-10-19 23:13:07 +02:00
backlight proc-cmdline: return proper errors from shall_restore_state() 2015-11-02 23:44:05 +01:00
basic parse-util: really refuse parsing negative values as positive ones, even on x86-32 2015-11-10 17:36:52 +01:00
binfmt defs: rework CONF_DIRS_NULSTR() macro 2015-11-10 17:31:31 +01:00
boot util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
bootchart defs: rework CONF_DIRS_NULSTR() macro 2015-11-10 17:31:31 +01:00
bus-proxyd util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
cgls cgls: when showing root slice, put -.slice at top of tree 2015-11-10 17:31:31 +01:00
cgroups-agent util-lib: split our string related calls from util.[ch] into its own file string-util.[ch] 2015-10-24 23:05:02 +02:00
cgtop util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
compat-libs #pragma once here and there 2015-01-23 09:30:44 -05:00
core core: accept time units for time-based resource limits 2015-11-10 17:36:46 +01:00
cryptsetup util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
dbus1-generator treewide: apply errno.cocci 2015-11-09 20:01:06 +01:00
debug-generator debug-generator: respect kernel parameters for default unit setting 2015-11-03 14:47:39 +03:00
delta treewide: apply errno.cocci 2015-11-09 20:01:06 +01:00
detect-virt detect-virt: add new --chroot switch to detect chroot() environments 2015-10-27 13:25:57 +01:00
escape util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
firstboot treewide: apply errno.cocci 2015-11-09 20:01:06 +01:00
fsck util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
fstab-generator util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
getty-generator util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
gpt-auto-generator treewide: apply errno.cocci 2015-11-09 20:01:06 +01:00
hibernate-resume util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
hostname util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
hwdb util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
import import: report error before losing errno 2015-11-05 13:44:09 +01:00
initctl treewide: apply errno.cocci 2015-11-09 20:01:06 +01:00
journal journald: dispatch SIGTERM/SIGINT with a low priority 2015-11-10 17:36:52 +01:00
journal-remote defs: rework CONF_DIRS_NULSTR() macro 2015-11-10 17:31:31 +01:00
kernel-install 90-loaderentry.install: fixup BOOT_OPTIONS 2015-06-02 16:10:06 +02:00
libsystemd Merge pull request #1820 from michich/errno-v2 2015-11-09 21:56:49 +01:00
libsystemd-network Merge pull request #1735 from thom311/master 2015-11-10 14:41:35 +01:00
libudev treewide: apply errno.cocci 2015-11-09 20:01:06 +01:00
locale util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
login defs: rework CONF_DIRS_NULSTR() macro 2015-11-10 17:31:31 +01:00
machine Merge pull request #1820 from michich/errno-v2 2015-11-09 21:56:49 +01:00
machine-id-setup path-util: unify how we process paths specified on the command line 2015-10-24 23:03:49 +02:00
modules-load defs: rework CONF_DIRS_NULSTR() macro 2015-11-10 17:31:31 +01:00
network networkd: Add support to configure IPV6 hop limit 2015-11-10 09:26:38 +05:30
notify util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
nspawn Merge pull request #1820 from michich/errno-v2 2015-11-09 21:56:49 +01:00
nss-myhostname util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
nss-mymachines util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
nss-resolve util-lib: split our string related calls from util.[ch] into its own file string-util.[ch] 2015-10-24 23:05:02 +02:00
path util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
quotacheck util-lib: move /proc/cmdline parsing code to proc-cmdline.[ch] 2015-10-27 13:25:57 +01:00
random-seed util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
rc-local-generator treewide: apply errno.cocci 2015-11-09 20:01:06 +01:00
remount-fs util-lib: move mount related utility calls to mount-util.[ch] 2015-10-27 13:25:55 +01:00
reply-password util-lib: split out fd-related operations into fd-util.[ch] 2015-10-25 13:19:18 +01:00
resolve defs: rework CONF_DIRS_NULSTR() macro 2015-11-10 17:31:31 +01:00
resolve-host parse-util: introduce parse_ifindex() and make use of it everywhere 2015-11-03 00:02:00 +01:00
rfkill proc-cmdline: return proper errors from shall_restore_state() 2015-11-02 23:44:05 +01:00
run util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
shared defs: rework CONF_DIRS_NULSTR() macro 2015-11-10 17:31:31 +01:00
sleep util-lib: split out fd-related operations into fd-util.[ch] 2015-10-25 13:19:18 +01:00
socket-proxy util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
sysctl defs: rework CONF_DIRS_NULSTR() macro 2015-11-10 17:31:31 +01:00
system-update-generator util-lib: move a number of fs operations into fs-util.[ch] 2015-10-27 13:25:56 +01:00
systemctl systemctl: port to extract_first_word 2015-11-02 21:47:40 +05:30
systemd sd-pppoe: drop 2015-11-03 16:14:12 +01:00
sysusers defs: rework CONF_DIRS_NULSTR() macro 2015-11-10 17:31:31 +01:00
sysv-generator sysv-generator: remove duplicate const 2015-11-02 23:18:20 +01:00
test core: accept time units for time-based resource limits 2015-11-10 17:36:46 +01:00
timedate util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
timesync defs: rework CONF_DIRS_NULSTR() macro 2015-11-10 17:31:31 +01:00
tmpfiles defs: rework CONF_DIRS_NULSTR() macro 2015-11-10 17:31:31 +01:00
tty-ask-password-agent tty-ask-password-agent: fix typo in error message 2015-11-05 13:44:01 +01:00
udev Merge pull request #1820 from michich/errno-v2 2015-11-09 21:56:49 +01:00
update-done util-lib: split out IO related calls to io-util.[ch] 2015-10-26 01:24:38 +01:00
update-utmp util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
user-sessions util-lib: split our string related calls from util.[ch] into its own file string-util.[ch] 2015-10-24 23:05:02 +02:00
vconsole treewide: use the negative error codes returned by our functions 2015-11-05 13:44:06 +01:00
.gitignore
Makefile