Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-01-15 | systemctl: when inhibiting shutdown/suspend also check for other login sessions | Lennart Poettering | |
2013-01-04 | Make gcc a bit quieter | Lennart Poettering | |
2012-12-31 | unit: add ConditionACPower= | Lennart Poettering | |
2012-12-24 | util: if /sys mounted read-only we can't suspend/hibernate | Lennart Poettering | |
2012-12-24 | util: when determining controlling tty of a process properly handle ↵ | Lennart Poettering | |
processes without | |||
2012-12-24 | logind: add support for automatic suspend/hibernate/shutdown on idle | Lennart Poettering | |
2012-12-23 | journalctl: strip TABs and ANSI color sequences from log messages when ↵ | Lennart Poettering | |
displaying them | |||
2012-11-23 | util: split off time related calls from util.[ch] into time-util.[ch] | Lennart Poettering | |
2012-11-23 | util: drop "," between week day and date when formatting timestamps | Lennart Poettering | |
The glibc default (as shown by the command line tool "date") doesn't put a comma there, and so we shouldn't either. | |||
2012-11-19 | shared/utils: systemd-cgls shows 'n/a' when piping output | Anders Olofsson | |
-1 was used to signal failure, but the type was unsigned. https://bugs.freedesktop.org/show_bug.cgi?id=56644 | |||
2012-11-16 | journal, shared: fix warnings during compilation on 32 bits | Zbigniew Jędrzejewski-Szmek | |
Some filesystem magics are too big to fit in 31 bits, and are wrapped to negative. f_type is an int on 32 bits, so it is signed, and we get a warning on comparison. | |||
2012-11-14 | util: add strreplace() to replace a substring by another string | Lennart Poettering | |
2012-11-12 | util: nicer tree drawings | Michal Schmidt | |
Draw trees more similar to pstree/findmnt/lsblk/... | |||
2012-11-04 | shared: add is_efiboot() | Kay Sievers | |
2012-11-02 | util : fallback to plain ASCII drawing if locale is not UTF-8 | Michal Schmidt | |
When printing cgroup and sysfs hierarchies, avoid using UTF-8 box drawing characters if the locale is not UTF-8. https://bugzilla.redhat.com/show_bug.cgi?id=871153 | |||
2012-11-02 | util: add is_locale_utf8() | Michal Schmidt | |
journalctl and vconsole-setup both implement utf8 locale detection. Let's have a common function for it. The next patch will add another use. | |||
2012-10-30 | shared, core: do not always accept numbers in string lookups | Michal Schmidt | |
The behaviour of the common name##_from_string conversion is surprising. It accepts not only the strings from name##_table but also any number that falls within the range of the table. The order of items in most of our tables is an internal affair. It should not be visible to the user. I know of a case where the surprising numeric conversion leads to a crash. We will allow the direct numeric conversion only for the tables where the mapping of strings to numeric values has an external meaning. This holds for the following lookup tables: - netlink_family, ioprio_class, ip_tos, sched_policy - their numeric values are stable as they are defined by the Linux kernel interface. - log_level, log_facility_unshifted - the well-known syslog interface. We allow the user to use numeric values whose string names systemd does not know. For instance, the user may want to test a new kernel featuring a scheduling policy that did not exist when his systemd version was released. A slightly unpleasant effect of this is that the name##_to_string conversion cannot return pointers to constant strings anymore. The strings have to be allocated on demand and freed by the caller. | |||
2012-10-30 | shared, libsystemd-daemon: check for empty strings in strto*l conversions | Michal Schmidt | |
strtol() and friends may set EINVAL if no conversion was performed, but they are not required to do so. In practice they don't. We need to check for it. https://bugzilla.redhat.com/show_bug.cgi?id=870577 | |||
2012-10-29 | util: improve overflow checks | Michal Schmidt | |
commit 49371bb fixed the observed division by zero, but missed another occurrence of the same bug. It was also not the optimal fix. We can simply make the divisor a constant by swapping it with the compared value. | |||
2012-10-29 | util: avoid divide by zero FPE | Dave Reisner | |
In early userspace, if kernel initialization happens extremely quickly, a call to systemd-timestamp can potentially result in division by zero. Ensure that the check in timespec_load, which only makes sense if tv_sec is greater than zero, is guarded by this condition. | |||
2012-10-28 | util: fix possible integer overflows | Michal Sekletar | |
2012-10-28 | logind: support for hybrid sleep (i.e. suspend+hibernate at the same time) | Lennart Poettering | |
2012-10-27 | util: return the remaining string in startswith() | Lennart Poettering | |
2012-10-25 | udev: hwdb - remove run_once | Kay Sievers | |
2012-10-22 | util: add (x)bsearch_r(), the missing counterpart of qsort_r() | Kay Sievers | |
2012-10-19 | util: change endswith() to return a pointer to the suffix | Lennart Poettering | |
2012-10-19 | util: unify line caching and column caching | Lennart Poettering | |
2012-10-19 | util: unify usage of on_tty() in util.c | Lennart Poettering | |
2012-10-19 | util: simplify column caching logic | Lennart Poettering | |
2012-10-17 | hostnamed: allow UTF8 chars in pretty hostname again | Lennart Poettering | |
2012-10-17 | timedatectl: introduce new command line client for timedated | Lennart Poettering | |
Much like logind has a client in loginctl, and journald in journalctl introduce timedatectl, to change the system time (incl. RTC), timezones and related settings. | |||
2012-10-16 | util: properly handle -1 timespec/timeval | Lennart Poettering | |
2012-10-11 | journalctl: implement --since= and --until for filtering by time | Lennart Poettering | |
2012-10-08 | shared: fix broken string_is_safe | Martin Mikkelsen | |
2012-10-03 | dbus: add some more safety checks before accepting data from bus clients | Lennart Poettering | |
2012-09-28 | logs-show: various cleanups | Lennart Poettering | |
Among other cleanups this introduces a threshold for the size of binary blobs we serialize as integer arrays in the JSON output. THis can be disabled via --all. | |||
2012-09-24 | util: don't export parsed_columns | Lennart Poettering | |
2012-09-24 | journalctl: reset cached column count on SIGWINCH | Dave Reisner | |
This requires a little bit of tip-toeing around to explicitly avoid touching the environment from a sig handler. Instead, simply create a function to reset the var to its "unset" state, allowing the next call to columns() to recalculate and cache the new value. | |||
2012-09-21 | shared: call va_end in all cases | Lukas Nykryn | |
2012-09-20 | util: fix overflow checks | Lennart Poettering | |
2012-09-20 | util: overflow hardening | Lennart Poettering | |
2012-09-19 | util: define union dirent_storage and make use of it everywhere | Lennart Poettering | |
Make sure to allocate enough space for readdir_r(). https://bugzilla.redhat.com/show_bug.cgi?id=858754 | |||
2012-09-19 | util: fix bad strstrip() return value in normalize_env_assignment() | Lennart Poettering | |
https://bugzilla.redhat.com/show_bug.cgi?id=858780 | |||
2012-09-18 | util: introduce get_process_gid() | Lennart Poettering | |
2012-09-17 | conf-parser: don't unescape parsed configuration strings by default | Lennart Poettering | |
In many cases this might have a negative effect since we drop escaping from strings where we better shouldn't have dropped it. If unescaping makes sense for some settings we can readd it later again, on a per-case basis. https://bugs.freedesktop.org/show_bug.cgi?id=54522 | |||
2012-09-17 | util: various cleanups for printing boot status | Lennart Poettering | |
2012-09-16 | nspawn: use automatic cleanup for umask | Zbigniew Jędrzejewski-Szmek | |
2012-09-14 | timedate: assorted improvements | Lennart Poettering | |
- Make writing/reading of /etc/timezone dependendent of HAVE_SYSV_COMPAT - Introduce symlink_atomic() after all, and use it - Use relative symlink for /etc/localtime | |||
2012-09-14 | util: more modernizations | Lennart Poettering | |
2012-09-14 | util: various additional modernizations | Lennart Poettering | |