projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df22b0b
)
logind: tell Coverity that we knowingly ignore mkdir()'s return value
author
Lennart Poettering
<lennart@poettering.net>
Tue, 10 Feb 2015 11:31:56 +0000
(12:31 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 10 Feb 2015 11:34:11 +0000
(12:34 +0100)
src/login/logind-user.c
patch
|
blob
|
history
diff --git
a/src/login/logind-user.c
b/src/login/logind-user.c
index
7b40ef5
..
f4c4490
100644
(file)
--- a/
src/login/logind-user.c
+++ b/
src/login/logind-user.c
@@
-322,7
+322,7
@@
static int user_mkdir_runtime_path(User *u) {
if (path_is_mount_point(p, false) <= 0) {
_cleanup_free_ char *t = NULL;
- mkdir(p, 0700);
+
(void)
mkdir(p, 0700);
if (mac_smack_use())
r = asprintf(&t, "mode=0700,smackfsroot=*,uid=" UID_FMT ",gid=" GID_FMT ",size=%zu", u->uid, u->gid, u->manager->runtime_dir_size);