Systemd/src
Lennart Poettering 85eca92e20 path-util: rework find_binary(), fsck_exists() and mkfs_exists()
Modernize the code a bit:

- Get rid of FOREACH_WORD_SEPARATOR() loop in favour of a
  extract_first_word() loop.

- Remove find_binary()'s "local" flag. It's not reasonably possible to
  look for binaries on remote systems, we hence should not pretend we
  could.

- When we cannot find a suitable binary, return the last error returned
  from access() rather than ENOENT unconditionally.

- Rework fsck_exists() and mkfs_exists() to return 1 on success, 0 if
  the implementation is missing and negative on real errors. This is
  more like we do it in other functions.

- Make sure we also detect direct fsck symlinks to "true", rather than
  just absolute ones to /bin/true.
2015-10-24 23:03:49 +02:00
..
ac-power
activate activate: validate fdname when accepting it 2015-10-06 12:32:31 +02:00
analyze analyze: trivial code cleanups 2015-10-07 15:45:39 +02:00
ask-password strv: Add _cleanup_strv_free_erase_ and _cleanup_string_free_erase_ 2015-10-19 23:13:07 +02:00
backlight fileio: consolidate write_string_file*() 2015-07-06 19:19:25 -04:00
basic path-util: rework find_binary(), fsck_exists() and mkfs_exists() 2015-10-24 23:03:49 +02:00
binfmt util: introduce common version() implementation and use it everywhere 2015-09-29 21:08:37 +02:00
boot util: introduce common version() implementation and use it everywhere 2015-09-29 21:08:37 +02:00
bootchart bootchart: use get_proc_field and PROC_CPUINFO_MODEL 2015-09-30 15:57:55 +03:00
bus-proxyd sd-bus: fix error handling of pthread API calls 2015-10-17 16:48:21 +02:00
cgls bus-util: rename bus_open_transport() to bus_connect_transport() 2015-09-29 21:55:52 +02:00
cgroups-agent bus-util: rename bus_open_transport() to bus_connect_transport() 2015-09-29 21:55:52 +02:00
cgtop bus-util: rename bus_open_transport() to bus_connect_transport() 2015-09-29 21:55:52 +02:00
compat-libs
core mount: add new SmackFileSystemRoot= setting for mount unit 2015-10-24 20:53:54 +09:00
cryptsetup strv: Add _cleanup_strv_free_erase_ and _cleanup_string_free_erase_ 2015-10-19 23:13:07 +02:00
dbus1-generator util: introduce safe_fclose() and port everything over to it 2015-09-09 15:26:11 +02:00
debug-generator tree-wide: update empty-if coccinelle script to cover empty-while and more 2015-09-09 14:59:51 +02:00
delta util: introduce common version() implementation and use it everywhere 2015-09-29 21:08:37 +02:00
detect-virt detect-virt: various modernizations 2015-09-29 21:55:51 +02:00
escape util: introduce common version() implementation and use it everywhere 2015-09-29 21:08:37 +02:00
firstboot strv: Add _cleanup_strv_free_erase_ and _cleanup_string_free_erase_ 2015-10-19 23:13:07 +02:00
fsck path-util: rework find_binary(), fsck_exists() and mkfs_exists() 2015-10-24 23:03:49 +02:00
fstab-generator basic: rework virtualization detection API 2015-09-07 13:42:47 +02:00
getty-generator basic: rework virtualization detection API 2015-09-07 13:42:47 +02:00
gpt-auto-generator gpt-auto-generator: fix duplicate backing partition check 2015-10-06 09:41:02 +02:00
hibernate-resume fileio: consolidate write_string_file*() 2015-07-06 19:19:25 -04:00
hostname bus-util: rename bus_open_transport() to bus_connect_transport() 2015-09-29 21:55:52 +02:00
hwdb util: introduce common version() implementation and use it everywhere 2015-09-29 21:08:37 +02:00
import import: don't claim we moved .nspawn file into place when in fact we did not 2015-10-22 01:59:25 +02:00
initctl bus-util: rename bus_open_transport() to bus_connect_transport() 2015-09-29 21:55:52 +02:00
journal Merge pull request #1659 from vcaputo/journal_verify_envalid 2015-10-24 11:52:52 +02:00
journal-remote Merge pull request #1406 from blaskovic/journal-remote-typo 2015-10-05 23:24:09 +02:00
kernel-install 90-loaderentry.install: fixup BOOT_OPTIONS 2015-06-02 16:10:06 +02:00
libsystemd Merge pull request #1595 from poettering/proxy-fixes 2015-10-18 12:15:10 +02:00
libsystemd-network sd-ndisc: reduce callbacks 2015-10-22 17:34:58 +02:00
libudev tree-wide: remove unused functions 2015-10-19 21:46:01 +02:00
locale bus-util: rename bus_open_transport() to bus_connect_transport() 2015-09-29 21:55:52 +02:00
login logind: minor clean-ups 2015-10-22 01:59:24 +02:00
machine machinectl: accept "none" and "infinity" as specifier when dropping quotas using "machinectl set-limit" 2015-10-22 01:59:25 +02:00
machine-id-setup machine-id-commit: merge machine-id-commit functionality into machine-id-setup 2015-09-29 21:55:51 +02:00
modules-load ask-password: add support for caching passwords in the kernel keyring 2015-10-07 12:26:14 +02:00
network sd-ndisc: don't inform the caller of expired prefixes 2015-10-22 17:19:54 +02:00
notify util: introduce common version() implementation and use it everywhere 2015-09-29 21:08:37 +02:00
nspawn nspawn: don't try to resolve passed binary before entering namespace 2015-10-22 01:59:25 +02:00
nss-myhostname hostname-util: introduce new is_gateway_hostname() call 2015-08-21 12:07:13 +02:00
nss-mymachines util: drop UID_IS_INVALID() in favour of uid_is_valid() 2015-09-22 16:31:32 +02:00
nss-resolve resolved: rework synthesizing logic 2015-08-21 12:41:08 +02:00
path util: introduce common version() implementation and use it everywhere 2015-09-29 21:08:37 +02:00
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 tree-wide: drop {} from one-line if blocks 2015-09-09 08:20:20 +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 tree-wide: whenever we deal with passwords, erase them from memory after use 2015-10-19 23:13:07 +02:00
resolve hashmap: refactor hash_func 2015-10-05 18:22:10 +02:00
resolve-host util: introduce common version() implementation and use it everywhere 2015-09-29 21:08:37 +02:00
rfkill rfkill: consistently use = in designator 2015-10-11 19:40:54 +02:00
run path-util: rework find_binary(), fsck_exists() and mkfs_exists() 2015-10-24 23:03:49 +02:00
shared path-util: rework find_binary(), fsck_exists() and mkfs_exists() 2015-10-24 23:03:49 +02:00
sleep util: introduce common version() implementation and use it everywhere 2015-09-29 21:08:37 +02:00
socket-proxy util: introduce common version() implementation and use it everywhere 2015-09-29 21:08:37 +02:00
sysctl util: introduce common version() implementation and use it everywhere 2015-09-29 21:08:37 +02:00
system-update-generator
systemctl systemctl: the various list commands actually can take any number of arguments 2015-10-22 01:59:24 +02:00
systemd sd-ndisc: drop sd_ndisc_get_prefixlen() 2015-10-22 17:19:54 +02:00
sysusers smack: label /etc/passwd and friends as '_' smack label when --with-smack-run-label' is enabled 2015-10-07 16:37:25 +09:00
sysv-generator util: add safe_closedir() similar to safe_fclose() 2015-09-22 16:30:24 +02:00
test path-util: rework find_binary(), fsck_exists() and mkfs_exists() 2015-10-24 23:03:49 +02:00
timedate bus-util: rename bus_open_transport() to bus_connect_transport() 2015-09-29 21:55:52 +02:00
timesync tree-wide: add more void casts for various syscall invocations 2015-10-19 23:07:18 +02:00
tmpfiles tmpfiles: simplify mountpoint detection 2015-10-23 22:35:03 +02:00
tty-ask-password-agent strv: Add _cleanup_strv_free_erase_ and _cleanup_string_free_erase_ 2015-10-19 23:13:07 +02:00
udev keymap: Drop keyboard-keys-to-name.h 2015-10-14 07:15:58 +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 update-utmp: flush and close the bus used for connections after use 2015-09-29 21:55:52 +02:00
user-sessions tree-wide: drop {} from one-line if blocks 2015-09-09 08:20:20 +02:00
vconsole basic: rework virtualization detection API 2015-09-07 13:42:47 +02:00
.gitignore
Makefile