Lennart Poettering
3990f24765
rfkill: add new rfkill tool to save/restore rfkill state across reboots
...
This works analogous to the existing backlight and random seed services
2013-10-14 04:31:49 +02:00
Lennart Poettering
0f4ba83c39
backlight: always prefer "firmware"/"platform" backlights over "raw" backlights if we have both for the same device
2013-10-14 02:22:35 +02:00
Zbigniew Jędrzejewski-Szmek
124b48b00d
man: add more markup to udevadm(8)
2013-10-13 19:43:19 -04:00
Zbigniew Jędrzejewski-Szmek
0eb2e0e340
event: avoid derefencing null pointer
2013-10-13 17:56:55 -04:00
Zbigniew Jędrzejewski-Szmek
23c6f770cc
bus: make sure we don't try to malloc 0 bytes
2013-10-13 17:56:55 -04:00
Zbigniew Jędrzejewski-Szmek
1ca208fb4f
Introduce udev object cleanup functions
2013-10-13 17:56:55 -04:00
Zbigniew Jędrzejewski-Szmek
b506291ff1
gitignore: ignore clang --analyze output
2013-10-13 17:56:55 -04:00
Zbigniew Jędrzejewski-Szmek
f6d2d42147
Make sure that we don't dereference NULL
...
The code was actually safe, because b should
never be null, because if rvalue is empty, a different
branch is taken. But we *do* check for NULL in the
loop above, so it's better to also check here for symmetry.
2013-10-13 17:56:55 -04:00
Zbigniew Jędrzejewski-Szmek
97fec53e5e
udev: use initialization instead of zeroing in one place
2013-10-13 17:56:55 -04:00
Zbigniew Jędrzejewski-Szmek
872c8faaf2
Fix write-only use of a few variables
...
Since the invention of read-only memory, write-only memory has been
considered deprecated. Where appropriate, either make use of the
value, or avoid writing it, to make it clear that it is not used.
2013-10-13 17:56:54 -04:00
Zbigniew Jędrzejewski-Szmek
51d122af23
Introduce _cleanup_fdset_free_
2013-10-13 17:56:54 -04:00
Zbigniew Jędrzejewski-Szmek
a3e7f417d7
bus: fix access to unitialized variable in error path
...
src/machine/machined-dbus.c:237:13: warning: Branch condition evaluates to a garbage value
if (m)
^
2013-10-13 17:56:54 -04:00
Zbigniew Jędrzejewski-Szmek
6891529fe1
drop-ins: check return value
...
If the function failed, nothing serious would happen
because unlink would probably return EFAULT, but this
would obscure the real error and is a bit sloppy.
2013-10-13 17:56:54 -04:00
Zbigniew Jędrzejewski-Szmek
7ca9dffae1
journald: use greedy_realloc in one place
2013-10-13 17:56:54 -04:00
Zbigniew Jędrzejewski-Szmek
74dcc2df7b
dbus-common: avoid leak in error path
...
src/shared/dbus-common.c:968:33: warning: Potential leak of memory pointed to by 'l'
return -EINVAL;
^~~~~~
2013-10-13 17:56:54 -04:00
Zbigniew Jędrzejewski-Szmek
b47d419c25
Modernization
...
Fixes minor leak in error path in device.c.
2013-10-13 17:56:54 -04:00
Zbigniew Jędrzejewski-Szmek
7ff7394d9e
Never call qsort on potentially NULL arrays
...
This extends 62678ded 'efi: never call qsort on potentially
NULL arrays' to all other places where qsort is used and it
is not obvious that the count is non-zero.
2013-10-13 17:56:54 -04:00
Zbigniew Jędrzejewski-Szmek
fb13164629
unicode: treat cute symbol block as fullwidth
...
UNICODE standards only talk about fullwidth characters for East
Asian scripts. But it seems that all those symbols are fullwidth
too.
2013-10-13 17:56:54 -04:00
Shawn Landden
35d811f521
test: test for ellipsize
2013-10-13 17:56:54 -04:00
Shawn Landden
f405e86de3
util, utf8: make ellipsize take multi-byte characters into account
...
rename old versions to ascii_*
Do not take into account zerowidth characters, but do consider double-wide characters.
Import needed utf8 helper code from glib.
v3: rebase ontop of utf8 restructuring work
[zj: tweak the algorithm a bit, move new code to separate file]
2013-10-13 17:56:54 -04:00
Dave Reisner
14a9283eb3
udevadm.xml: document --resolve-names option for test
...
And remove documentation of the --subsystem flag which doesn't actually
exist.
2013-10-13 17:42:51 -04:00
Lennart Poettering
4be391639f
bus: properly implement logic for generating InterfacesAdded/InterfacesRemoved signals of ObjectManager
2013-10-11 23:23:46 +02:00
Lennart Poettering
92db139e34
bus: in GetManagedObjects() only return each object once.
2013-10-11 23:21:22 +02:00
Lennart Poettering
92e189e572
bus: unify code to find parents of an object path with
2013-10-11 23:20:54 +02:00
Lennart Poettering
8e4e652b92
bus: properly generate GetAll reply
2013-10-11 23:19:40 +02:00