summaryrefslogtreecommitdiffstats
path: root/x11vnc/unixpw.c
diff options
context:
space:
mode:
authorrunge <runge>2006-06-24 01:00:43 +0000
committerrunge <runge>2006-06-24 01:00:43 +0000
commit9992160105b0433484bca804d62eb672aff113de (patch)
tree76447789365f2cfc38e5650a3a34cd9ad132382f /x11vnc/unixpw.c
parent64e731a9da82e3cc614e274d6fca6f855d0359b7 (diff)
downloadlibtdevnc-9992160105b0433484bca804d62eb672aff113de.tar.gz
libtdevnc-9992160105b0433484bca804d62eb672aff113de.zip
x11vnc: misc cleanup.
Diffstat (limited to 'x11vnc/unixpw.c')
-rw-r--r--x11vnc/unixpw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/x11vnc/unixpw.c b/x11vnc/unixpw.c
index 297a8e2..c55c9b5 100644
--- a/x11vnc/unixpw.c
+++ b/x11vnc/unixpw.c
@@ -12,6 +12,8 @@ extern char *crypt(const char*, const char *);
#include "scan.h"
#include "cleanup.h"
#include "xinerama.h"
+#include "connections.h"
+#include "user.h"
#include <rfb/default8x16.h>
#if LIBVNCSERVER_HAVE_FORK
@@ -365,7 +367,7 @@ int su_verify(char *user, char *pass, char *cmd, char *rbuf, int *rbuf_size) {
#ifndef UNIXPW_SU
return 0;
#else
- int i, j, status, fd = -1, sfd, tfd, drain_size = 4096, rsize;
+ int i, j, status, fd = -1, sfd, tfd, drain_size = 4096, rsize = 0;
int slow_pw = 1;
char *slave, *bin_true = NULL, *bin_su = NULL;
pid_t pid, pidw;