summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-02-10 12:31:56 +0100
committerLennart Poettering <lennart@poettering.net>2015-02-10 12:34:11 +0100
commita9c67ea2a24d61640971fc1ca366a3e6c7d75266 (patch)
treef2276b98c03799297f9ff63ac2c605b9ce91022d
parentdf22b0bbfde403b3fa71f3c2f1e2ca38af946388 (diff)
logind: tell Coverity that we knowingly ignore mkdir()'s return value
-rw-r--r--src/login/logind-user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-user.c b/src/login/logind-user.c
index 7b40ef5952..f4c4490e8f 100644
--- 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);