Thomas Hindoe Paaboel Andersen
b2b46f91db
journal: remove error check that never happens
...
remove_directory will always return 0 so this can never happen.
Besides that, d->path and d are freed so we would end up with
a null pointer dereference anyway.
2015-08-18 00:11:16 +02:00
Thomas Hindoe Paaboel Andersen
88231eb62c
logind: actually fail on OOM
...
Since dacd6cee76 the two OOM's are
ignored as the value of r will be overwritten and we only log in
the fail section anyway.
This patch jumps to fail on OOM.
Note that this is different behavior compared to both the current
code and previous to dacd6cee76 . Before
that commit we would log that saving the inhibit data failed, but
still write the file, though without the WHO/WHY section.
CID# 1313545
2015-08-13 23:53:49 +02:00
Thomas Hindoe Paaboel Andersen
6b829dddc6
hwdb: add DPI for a few more mice
2015-08-12 22:29:28 +02:00
Thomas Hindoe Paaboel Andersen
756775814c
tree-wide: do not return error codes as bool
2015-08-06 00:49:45 +02:00
Thomas Hindoe Paaboel Andersen
7d6884b65e
tree-wide: fix indentation
2015-08-06 00:44:19 +02:00
Thomas Hindoe Paaboel Andersen
1ae2285324
gpt-auto-generator: remove unused variable
2015-08-04 22:36:21 +02:00
Thomas Hindoe Paaboel Andersen
75440a51b2
hwdb: add Logitech LX8 DPI and wheel click settings
2015-08-04 22:15:30 +02:00
Thomas Hindoe Paaboel Andersen
d78dfff261
hwdb: add HP USB 1000dpi Laser Mouse
2015-07-28 20:10:59 +02:00
Thomas Hindoe Paaboel Andersen
dd2b607b7d
man: typo fixes
2015-07-25 23:15:51 +02:00
Thomas Hindoe Paaboel Andersen
7bea001ea4
ata_id: remove unused union member
...
The last use of octa was removed in 01f61d331b
2015-07-25 00:14:13 +02:00
Thomas Hindoe Paaboel Andersen
207dffe2ff
machine: remove unused variables
2015-07-08 23:46:47 +02:00
Thomas Hindoe Paaboel Andersen
67ad70e4e9
man: sd-bus: typo fix
2015-07-06 20:37:32 +02:00
Thomas Hindoe Paaboel Andersen
edf5b3b869
cgroup-util: actually use the path callback
...
We allow to specify a callback but then ignore the result. Looks like a trivial typo.
From 7b3fd6313c4b07b6f822a9f979d0c22350a401d9#diff-f010fa21ba7b659b519c122743e55604
2015-06-18 17:39:34 +02:00
Thomas Hindoe Paaboel Andersen
0aee49d5fb
NEWS: typo fixes
2015-06-18 17:10:59 +02:00
Thomas Hindoe Paaboel Andersen
118786182b
udved: remove dead code
...
Leftover from 6af5e6a4c9
2015-06-17 20:33:25 +02:00
Thomas Hindoe Paaboel Andersen
144c348883
sd-dhcp-client: readd deleted error check
...
Seems to have been removed by mistake in:
9021bb9f93
2015-06-17 19:11:18 +02:00
Thomas Hindoe Paaboel Andersen
19fcba36e4
test-netlink-manual: typo fix
...
No functional change, but looked weird.
2015-06-14 13:57:35 +02:00
Thomas Hindoe Paaboel Andersen
60053efbba
core: log oom during killing spree
...
but don't do anything else. We still want to kill as much as
possible.
Coverity CID#996306
2015-06-09 22:07:27 +02:00
Thomas Hindoe Paaboel Andersen
00c11bc53a
build-sys: don't suppress irrelevant warnings
...
We do not trigger these warnings so no need to suppress them.
2015-06-08 23:43:56 +02:00
Thomas Hindoe Paaboel Andersen
920b52e490
tree-wide: remove spurious space
2015-06-08 23:11:26 +02:00
Thomas Hindoe Paaboel Andersen
602ee553e4
test-util: fix a memleak
2015-06-03 19:50:02 +02:00
Thomas Hindoe Paaboel Andersen
7e518afab9
fix double semicolon typo
2015-06-02 23:29:20 +02:00
Thomas Hindoe Paaboel Andersen
ce1daea1d1
terminal: fix include ordering
2015-05-30 00:02:29 +02:00
Thomas Hindoe Paaboel Andersen
56f342f397
console: use signal-util.h and reorder includes
...
Missed this one from the previous commit
2015-05-29 21:12:26 +02:00
Thomas Hindoe Paaboel Andersen
9dd008df45
terminal: use signal-util.h and reorder includes
2015-05-29 20:52:23 +02:00
Thomas Hindoe Paaboel Andersen
dd114e116b
bootctl: fix an error check
2015-05-23 13:03:30 +02:00
Thomas Hindoe Paaboel Andersen
717442507b
bootctl: ferror must be called before FILE is closed
...
Otherwise it will not show any error stored
2015-05-22 23:46:36 +02:00
Thomas Hindoe Paaboel Andersen
fecb719ec1
json: fix a mem leak
2015-05-19 23:19:54 +02:00
Thomas Hindoe Paaboel Andersen
6d9bad91d7
pull-dkr: fix memleak
2015-05-19 19:24:47 +02:00
Thomas Hindoe Paaboel Andersen
e861098bf2
core: fix OOM checks in dbus-unit
...
CID#1299014
2015-05-19 06:46:59 +02:00
Thomas Hindoe Paaboel Andersen
b669934fae
test-hashmap: fix an assert
...
CID#1299016
2015-05-19 06:35:44 +02:00
Thomas Hindoe Paaboel Andersen
7185d80558
networkd: remove dead initialization
2015-05-13 23:44:20 +02:00
Thomas Hindoe Paaboel Andersen
91077af69e
fsck: add enum with fsck exit codes
2015-05-12 22:09:48 +02:00
Thomas Hindoe Paaboel Andersen
eacd853425
systemctl: fix check for template units
...
A typo from 7410616c . We want to ignore EINVAL but only catch errors.
2015-05-12 00:26:14 +02:00
Thomas Hindoe Paaboel Andersen
86ff9f1173
test-libudev: fix leak in error case
...
CID# 1297428
2015-05-11 21:42:59 +02:00
Thomas Hindoe Paaboel Andersen
12322d4100
swap: avoid null pointer dereference
...
CID#1297436
2015-05-11 21:03:50 +02:00
Thomas Hindoe Paaboel Andersen
74bddd6f19
udevd: remove unused function
2015-05-07 07:27:38 +02:00
Thomas Hindoe Paaboel Andersen
7f629b74c4
device: avoid null pointer dereference
2015-05-06 19:58:03 +02:00
Thomas Hindoe Paaboel Andersen
c0c6a4fc1c
test-libudev: add error handling
...
CID#1296244
2015-05-06 18:40:30 +02:00
Thomas Hindoe Paaboel Andersen
90615ad791
machinectl: remove unused variable
2015-05-06 18:23:46 +02:00
Thomas Hindoe Paaboel Andersen
470d7e17f9
terminal: update for simpler sd-bus api's
2015-04-30 20:12:48 +02:00
Thomas Hindoe Paaboel Andersen
68a01fb658
scope: use correct enum type
2015-04-28 19:03:11 +02:00
Thomas Hindoe Paaboel Andersen
8431778882
path-util: fix fstat fallback in fd_is_mount_point
2015-04-26 16:02:21 +02:00
Thomas Hindoe Paaboel Andersen
5921fc3cc3
sysv-generator: avoid freeing uninitialized variable
...
Would happen if lookup_paths_init returns an error.
2015-04-26 14:45:49 +02:00
Thomas Hindoe Paaboel Andersen
8d04b9af96
automount: remove unused variable
2015-04-21 22:40:10 +02:00
Thomas Hindoe Paaboel Andersen
70c79983e1
test-dhcp6-client: don't unref the event twice
2015-04-14 18:33:31 +02:00
Thomas Hindoe Paaboel Andersen
8283c71b71
sd-dhcp6-client: unref lease when freeing the client
2015-04-14 18:32:58 +02:00
Thomas Hindoe Paaboel Andersen
a64edefacb
test-ipv4ll: clean up the event
...
shuts up valgrind/sanitizers
2015-04-13 23:38:02 +02:00
Thomas Hindoe Paaboel Andersen
7a03974a6f
sysv-generator: fix mem leaks
2015-04-11 13:47:56 +02:00
Thomas Hindoe Paaboel Andersen
05a08cb60f
dbus: typo fix in log
2015-04-10 23:39:40 +02:00
Thomas Hindoe Paaboel Andersen
75c2a9fd13
tmpfiles: fix build with clang
...
Clang is not happy about using the cleanup attribute in switches
2015-04-10 23:28:08 +02:00
Thomas Hindoe Paaboel Andersen
733dbdc534
efivars: fix build for non-efi
2015-04-10 23:00:07 +02:00
Thomas Hindoe Paaboel Andersen
96406c1a27
util: fix a typo in comment
2015-04-09 23:58:28 +02:00
Thomas Hindoe Paaboel Andersen
8489a3b769
networkd: do not assign the variable twice
2015-04-09 00:05:58 +02:00
Thomas Hindoe Paaboel Andersen
48b0d27aab
configure: sign-compare is part of extra
...
Remove sign-compare as we already get it from extra
2015-04-07 21:27:37 +02:00
Thomas Hindoe Paaboel Andersen
2bb9e6203d
device: remove unused null check
...
We dereference the variable right before the null check. We never reach
this point with a null value anyway so let's just remove it.
2015-04-07 21:11:38 +02:00
Thomas Hindoe Paaboel Andersen
5d84c44a97
test-util: don't mix declarations and code
2015-04-07 20:54:23 +02:00
Thomas Hindoe Paaboel Andersen
4835f5639a
libudev-util: check length before accesing the array
2015-04-05 08:46:01 +02:00
Thomas Hindoe Paaboel Andersen
afbbf1369b
service: remove unnecessary forward declare
2015-04-05 08:45:56 +02:00
Thomas Hindoe Paaboel Andersen
a4135d3234
tmpfiles: avoid out of bounds read
...
Otherwise this will go wrong for 'v'.
2015-03-24 23:53:09 +01:00
Thomas Hindoe Paaboel Andersen
eef8df097d
timedatectl: remove unused variables
2015-03-24 22:56:28 +01:00
Thomas Hindoe Paaboel Andersen
1bc48c0471
fsck: use %zu for size_t
...
cur and max were changed to size_t in ac6e2f0dfc
update the format accordingly.
2015-03-19 21:11:32 +01:00
Thomas Hindoe Paaboel Andersen
0c900704e7
Add type specifier for int
2015-03-10 05:37:01 +01:00
Thomas Hindoe Paaboel Andersen
6c767d1e1a
logs-show: fix check of loop_read_exact
...
just a typo fix
2015-03-10 05:37:01 +01:00
Thomas Hindoe Paaboel Andersen
061a237dd2
machinectl: remove unused variables
2015-03-09 21:09:18 +01:00
Thomas Hindoe Paaboel Andersen
c43b2132f3
core: fix return value on OOM
2015-02-28 23:42:03 +01:00
Thomas Hindoe Paaboel Andersen
3a4efbff2e
bootctl: check that partition uuid is valid
...
It probably is but check anyway to make coverity happy.
CID#1271354
2015-02-25 23:32:50 +01:00
Thomas Hindoe Paaboel Andersen
7cb0f263ad
bootctl: fix mem leaks
...
CID#1271347/1271348
2015-02-25 00:00:32 +01:00
Thomas Hindoe Paaboel Andersen
858a109f4a
machined: fix check if host directory could be opened
...
CID#1271351
2015-02-24 20:51:28 +01:00
Thomas Hindoe Paaboel Andersen
76dcbc4992
acl-util: avoid freeing uninitialized pointer
...
CID#1271344/1271345
2015-02-24 20:42:40 +01:00
Thomas Hindoe Paaboel Andersen
2eec67acbb
remove unused includes
...
This patch removes includes that are not used. The removals were found with
include-what-you-use which checks if any of the symbols from a header is
in use.
2015-02-23 23:53:42 +01:00
Thomas Hindoe Paaboel Andersen
04155c6713
systemd-boot: fix alignment of version in table
2015-02-18 22:19:17 +01:00
Thomas Hindoe Paaboel Andersen
b89c454b37
import: remove unused variable
2015-02-17 20:06:13 +01:00
Thomas Hindoe Paaboel Andersen
7edecf218e
NEWS: typo fixes
2015-02-16 21:21:16 +01:00
Thomas Hindoe Paaboel Andersen
0a6f50c0af
include <poll.h> instead of <sys/poll.h>
...
include-what-you-use automatically does this and it makes finding
unnecessary harder to spot. The only content of poll.h is a include
of sys/poll.h so should be harmless.
2015-02-12 20:47:38 +01:00
Thomas Hindoe Paaboel Andersen
c1ff5570f4
Add missing includes in header files
...
This fixes various issues found by globally reordering the include
sections of all .c files.
2015-02-12 20:44:32 +01:00
Thomas Hindoe Paaboel Andersen
76f282c636
test-util: remove superfluous const
2015-02-12 20:44:11 +01:00
Thomas Hindoe Paaboel Andersen
8744505aae
remove unused variable
2015-02-12 20:44:06 +01:00
Thomas Hindoe Paaboel Andersen
4cd552bc50
partial revert of fed6df8
...
This one was acutally used to free xattr
2015-02-03 21:40:30 +01:00
Thomas Hindoe Paaboel Andersen
fed6df828d
remove unused variables
2015-02-02 22:58:06 +01:00
Thomas Hindoe Paaboel Andersen
9a14fb6285
machinectl: Check type instead of path before printing the type
...
Looks like a typo when introduced in fefdc04b38
2015-01-02 21:38:22 +01:00
Thomas Hindoe Paaboel Andersen
30c873fbfb
test-json: use fabs
2014-12-16 20:38:03 +01:00
Thomas Hindoe Paaboel Andersen
b7378b89d2
networkctl: remove unused variable
2014-12-12 21:57:44 +01:00
Thomas Hindoe Paaboel Andersen
abc08d4d08
wrap a few *_FOREACH macros in curly braces
...
cppcheck would give up with "syntax error" without them. This led
to reports of syntax errors in unrelated locations and potentially
hid other errors
2014-12-12 21:57:44 +01:00
Thomas Hindoe Paaboel Andersen
c4ef05484d
use correct format types
2014-12-11 21:47:06 +01:00
Thomas Hindoe Paaboel Andersen
1372d5eff4
networkd: remove unused variable
...
It is no longer used after 45af44d47d
2014-12-09 20:51:58 +01:00
Thomas Hindoe Paaboel Andersen
8b5e2af108
remove duplicated includes
2014-12-06 09:51:12 +01:00
Thomas Hindoe Paaboel Andersen
d2df88ffba
sd-bus: avoid a null dereference
2014-12-04 00:24:44 +01:00
Thomas Hindoe Paaboel Andersen
652212b0c2
systemctl: fix a leak
2014-12-04 00:15:02 +01:00
Thomas Hindoe Paaboel Andersen
f08c4c08c7
test-path-util: fix a leak
2014-12-04 00:13:10 +01:00
Thomas Hindoe Paaboel Andersen
6c03d27d9f
networkctl: remove unused variable
2014-12-03 23:51:56 +01:00
Thomas Hindoe Paaboel Andersen
e706d931e0
util: don't shadow variable
...
environ is already defined in unistd.h
2014-12-03 23:51:51 +01:00
Thomas Hindoe Paaboel Andersen
c09157eeea
systemctl: remove unused variable
2014-11-30 00:36:16 +01:00
Thomas Hindoe Paaboel Andersen
b5a1e50495
fix build with --enable-terminal
...
Broke with 086891e5c1
2014-11-27 23:18:34 +01:00
Thomas Hindoe Paaboel Andersen
8e24a4f8b6
pam_systemd: remove unused null check
...
username was already checked with isempty() and cannot be null at
this point.
CID#1237766
2014-11-15 23:47:39 +01:00
Thomas Hindoe Paaboel Andersen
85e74b26c3
autogen: drop unnecessary -Wno-gnu for the clang shortcut
...
It is no longer necessary after 65e3a2cf7c
where -Wno-gnu-variable-sized-type-not-at-end is added if we detect
that the compiler is clang.
2014-11-15 21:32:59 +01:00
Thomas Hindoe Paaboel Andersen
6f53e671aa
util: avoid double close of fd
...
We could end with a double close if we close the fd loop and flush_fd
fails. That would make us goto fail and there we close the fd once
again. This patch sets the fd to the return value for safe_close: -1
A fd with negative value will be ignored by the next call to
safe_close.
CID#996223
2014-10-09 00:19:57 +02:00
Thomas Hindoe Paaboel Andersen
13303f018d
sd-bus: remove unused variable
...
It is no longer used after d663f1b1a9
2014-10-07 00:00:21 +02:00
Thomas Hindoe Paaboel Andersen
0077776275
terminal: remove an unused initialization
2014-10-05 22:43:07 +02:00
Thomas Hindoe Paaboel Andersen
bdf7026e95
test: only use assert_se
...
The asserts used in the tests should never be allowed to be
optimized away
2014-10-04 23:55:35 +02:00