chiark / gitweb /
logind: tell Coverity that we knowingly ignore mkdir()'s return value
authorLennart Poettering <lennart@poettering.net>
Tue, 10 Feb 2015 11:31:56 +0000 (12:31 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 10 Feb 2015 11:34:11 +0000 (12:34 +0100)
src/login/logind-user.c

index 7b40ef5..f4c4490 100644 (file)
@@ -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);