chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Get rid of some more unused defines and dirs
[elogind.git]
/
src
/
shared
/
ask-password-api.c
diff --git
a/src/shared/ask-password-api.c
b/src/shared/ask-password-api.c
index d6589a67f695c7db2aed8fc38d38115f47bf06ba..a3a2e51bb9cafcb98781a90db18ef0f1f5650289 100644
(file)
--- a/
src/shared/ask-password-api.c
+++ b/
src/shared/ask-password-api.c
@@
-21,7
+21,7
@@
#include <stdbool.h>
#include <termios.h>
#include <unistd.h>
#include <stdbool.h>
#include <termios.h>
#include <unistd.h>
-#include <
sys/
poll.h>
+#include <poll.h>
#include <sys/inotify.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/inotify.h>
#include <errno.h>
#include <fcntl.h>
@@
-32,8
+32,11
@@
#include <sys/signalfd.h>
#include "util.h"
#include <sys/signalfd.h>
#include "util.h"
+#include "formats-util.h"
#include "mkdir.h"
#include "strv.h"
#include "mkdir.h"
#include "strv.h"
+#include "random-util.h"
+#include "terminal-util.h"
#include "ask-password-api.h"
#include "ask-password-api.h"
@@
-475,6
+478,8
@@
int ask_password_agent(
goto finish;
}
goto finish;
}
+ cmsg_close_all(&msghdr);
+
if (n <= 0) {
log_error("Message too short");
continue;
if (n <= 0) {
log_error("Message too short");
continue;