mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 02:21:44 +03:00
tty-ask-password-agent: add (void) cast to mkdir/mkfifo calls we knowingly ignore
This commit is contained in:
parent
dccca82b1a
commit
e3e2cf07b1
@ -417,8 +417,8 @@ static int wall_tty_block(void) {
|
|||||||
if (asprintf(&p, "/run/systemd/ask-password-block/%u:%u", major(devnr), minor(devnr)) < 0)
|
if (asprintf(&p, "/run/systemd/ask-password-block/%u:%u", major(devnr), minor(devnr)) < 0)
|
||||||
return log_oom();
|
return log_oom();
|
||||||
|
|
||||||
mkdir_parents_label(p, 0700);
|
(void) mkdir_parents_label(p, 0700);
|
||||||
mkfifo(p, 0600);
|
(void) mkfifo(p, 0600);
|
||||||
|
|
||||||
fd = open(p, O_RDONLY|O_CLOEXEC|O_NONBLOCK|O_NOCTTY);
|
fd = open(p, O_RDONLY|O_CLOEXEC|O_NONBLOCK|O_NOCTTY);
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user