chiark / gitweb /
networkd: vxlan add support for GBP
[elogind.git] / src / shared / ask-password-api.c
index ad1a7731ff197c15ab6927eebe8550c2ca9b492a..3941605ceceda64730943f5dcee30f49af84ef32 100644 (file)
@@ -36,7 +36,8 @@
 #include "mkdir.h"
 #include "strv.h"
 #include "random-util.h"
-
+#include "terminal-util.h"
+#include "signal-util.h"
 #include "ask-password-api.h"
 
 static void backspace_chars(int ttyfd, size_t p) {
@@ -322,9 +323,9 @@ int ask_password_agent(
 
         assert(_passphrases);
 
-        assert_se(sigemptyset(&mask) == 0);
-        sigset_add_many(&mask, SIGINT, SIGTERM, -1);
-        assert_se(sigprocmask(SIG_BLOCK, &mask, &oldmask) == 0);
+        assert_se(sigemptyset(&mask) >= 0);
+        assert_se(sigset_add_many(&mask, SIGINT, SIGTERM, -1) >= 0);
+        assert_se(sigprocmask(SIG_BLOCK, &mask, &oldmask) >= 0);
 
         mkdir_p_label("/run/systemd/ask-password", 0755);