Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-04-22 | btrfs-util: be more careful when invoking btrfs file system ioctls | Lennart Poettering | |
If we get passed an fd that does not refer to a regular file or directory, we should not issue btrfs ioctls on it, since it might end up in a device driver or similar (note that DRM for example uses the same ioctl numbers as some file system ioctls). Hence, let's make sure to always check if something is a regular file or directory, or is on btrfs before invoking the respective ioctls. It's better to be safe than sorry. | |||
2015-04-22 | btrfs-util: introduce btrfs_is_filesystem() and make use of it where appropriate | Lennart Poettering | |
Let's unify the code that checks whether an fd is on btrfs a bit. (Also, rename btrfs_is_snapshot() to btrfs_is_subvol(), since that's usually how this is referred to in our code) | |||
2015-04-22 | util: make sure fd refers to regular file or directory when applying file ↵ | Lennart Poettering | |
attributes Before invoking file system ioctls we need to make sure that the specified fd actually refers to a file system object, and not a device node or similar. Otherwise we might by accident invoke unrelated device driver ioctls. For example, DRM ioctls use the same ioctl numbers as the various file system ioctls. | |||
2015-04-21 | core: make unit deserialization more defensive | Lennart Poettering | |
2015-04-21 | tree-wide: get rid of more strerror() calls | Lennart Poettering | |
2015-04-21 | log: move log_syntax() into src/shared/log.c, and make it more similar to ↵ | Lennart Poettering | |
the other log functions | |||
2015-04-20 | util: fix typo | Raul Gutierrez S | |
2015-04-18 | exit-status: Fix "NOTINSSTALLED" typo | Martin Pitt | |
2015-04-16 | shared: move assert_return_errno() from libudev | Tom Gundersen | |
This should not be used for any new code, as we don't set errno in new code, but there are several legacy users, so let's keep it in shared. | |||
2015-04-12 | shared/hashmap: normalize whitespace | Zbigniew Jędrzejewski-Szmek | |
2015-04-11 | bus: implement bus_label_unescape_n() | David Herrmann | |
This is like bus_label_unescape() but takes a maximum length instead of relying on NULL-terminated strings. This is highly useful to unescape labels that are not at the end of a path. | |||
2015-04-11 | hashmap: return NULL from destructor | David Herrmann | |
We _always_ return NULL from destructors to allow direct assignments to the variable holding the object. Especially on hashmaps, which treat NULL as empty hashmap, this is pretty neat. | |||
2015-04-11 | shared: move replace_env* from util to env-util | Ronny Chevalier | |
2015-04-11 | shared: add terminal-util.[ch] | Ronny Chevalier | |
2015-04-11 | shared: add random-util.[ch] | Ronny Chevalier | |
2015-04-10 | shared: add process-util.[ch] | Ronny Chevalier | |
2015-04-10 | shared: add formats-util.h | Ronny Chevalier | |
2015-04-10 | efivars: fix build for non-efi | Thomas Hindoe Paaboel Andersen | |
2015-04-10 | shared: boot-timestamps - remove ifdef | Tom Gundersen | |
No need to ifdef out efi code as the functions are always defined. | |||
2015-04-10 | shared: efivars - fix compile on non-EFI systems | Tom Gundersen | |
systemctl and logind were unconditionally using functions that were not compiled on non-EFI systems. Add stubs returning -EOPNOTSUPP to fix compile again. | |||
2015-04-10 | shared: efivars - is_efi_*() returns bool instead of int | Tom Gundersen | |
There was a bug where is_efi_*() could return a negative error value, which would be treated as 'true', just make this a bool in the helper library to avoid the problem. | |||
2015-04-10 | device-nodes: minor simplifications | Lennart Poettering | |
2015-04-10 | util: unify how we parse mode_t strings | Lennart Poettering | |
2015-04-10 | util: remove normalize_env_assignment(), it's unused | Lennart Poettering | |
2015-04-10 | shared: fix memleak | Ronny Chevalier | |
path was used for 2 purposes but it was not freed before being reused. | |||
2015-04-10 | util: mark unquote() static, so that new code doesn't use this anymore | Lennart Poettering | |
2015-04-10 | util: fix unicode decoding in unquote_first_word() | Lennart Poettering | |
2015-04-10 | util: when unescaping C escape sequences support C++11 \u and \U unicode ↵ | Lennart Poettering | |
literals We simply recode them in utf8. | |||
2015-04-09 | util: fix a typo in comment | Thomas Hindoe Paaboel Andersen | |
2015-04-09 | util: cunescape - fix memleak in error path | Ronny Chevalier | |
2015-04-09 | util: add shell_maybe_quote() call for preparing a string for shell cmdline ↵ | Lennart Poettering | |
inclusion If necessary the passed string is enclosed in "", and all special characters escapes. This also ports over usage in bus-util.c and job.c to use this, instead of a incorrect local implementation that forgets to properly escape. | |||
2015-04-08 | util: merge change_attr_fd() and chattr_fd() | Lennart Poettering | |
2015-04-08 | util: add minimal OrderedSet type | Lennart Poettering | |
OrderedSet implements a Set-like structure, but maintains insertion ordered. It is hence to Set what OrderedHashmap is for Hashmap. Internally, this is only a wrapper around OrderedHashmap for now, but this could one day be improved and be added to hashmap.c natively. | |||
2015-04-08 | missing.h: Define IFA_F_NOPREFIXROUTE | Alexander Sverdlin | |
Fixes second systemd compilation problem against Linux 3.12 uapi headers. IFA_F_NOPREFIXROUTE is a usual #define appeared in Linux 3.14, so AC_CHECK_DECLS is not necessary. | |||
2015-04-08 | remove duplicated includes | Ronny Chevalier | |
2015-04-07 | missing.h: define IFA_FLAGS if it is missing | Lennart Poettering | |
2015-04-07 | logind,systemctl: add reboot to EFI firmware support | Jan Janssen | |
2015-04-07 | path-util: fix more path_is_mount e792e890f fallout | Lennart Poettering | |
2015-04-07 | util: rework cunescape(), improve error handling | Lennart Poettering | |
Change cunescape() to return a normal error code, so that we can distuingish OOM errors from parse errors. This also adds a flags parameter to control whether "relaxed" or normal parsing shall be done. If set no parse failures are generated, and the only reason why cunescape() can fail is OOM. | |||
2015-04-07 | udev: input_id: tag accelerometers as ID_INPUT_ACCELEROMETER | Hans de Goede | |
input_id already (tries to) tag accelerometers as such, but this only works for absolute accelerometers. Recent kernels mark accelerometers through an input prop. Trust that prop and always tag devices with it with ID_INPUT_ACCELEROMETER. Note that detection by the prop bit works the same as the existing detection and will ensure that no other tags get set on the device. | |||
2015-04-07 | udev: input_id: tag pointing sticks as ID_INPUT_POINTINGSTICK | Peter Hutterer | |
Also referred to as trackpoint, trackstick. These are marked by recent kernels through an input prop. Forward that prop as udev property so userspace can easily determine whether there is a pointing stick present. These devices were previously marked as ID_INPUT_MOUSE, for backwards compatibility we keep that in place, the new property is an addition. | |||
2015-04-06 | btrfs: add support for recursive btrfs snapshotting | Lennart Poettering | |
2015-04-06 | btrfs: missing endian conversion fix | Lennart Poettering | |
2015-04-06 | btrfs: make btrfs_subvol_snapshot() parameters a flags field | Lennart Poettering | |
2015-04-06 | btrfs: support recursively removing btrfs snapshots | Lennart Poettering | |
2015-04-06 | machined: drop btrfs subvolumes when removing container images | Lennart Poettering | |
2015-04-06 | path-util: don't eat up ENOENT in path_is_mount_point() | Lennart Poettering | |
There's no reason to eat up ENOENT, it should be OK to simply report the error back. | |||
2015-04-06 | path-util: make sure fd_is_mount_point() returns true for root directory | Lennart Poettering | |
2015-04-06 | rm-rf: add support for recursively removing btrfs subvolumes | Lennart Poettering | |
2015-04-06 | path-util: if parent can do name_to_handle() but relevant dir not, it's a ↵ | Lennart Poettering | |
mount point |