summaryrefslogtreecommitdiffstats
path: root/x11vnc
diff options
context:
space:
mode:
authorrunge <runge@karlrunge.com>2009-12-05 14:31:31 -0500
committerrunge <runge@karlrunge.com>2009-12-05 14:31:31 -0500
commit6153bd69835da0e7217ae844bdba4e2ba676f981 (patch)
tree270d264e229678c29fde567f2334eace65bda185 /x11vnc
parent00a9a0ea4d0f642b34b4423ea867099b52edf078 (diff)
downloadlibvncserver-6153bd69835da0e7217ae844bdba4e2ba676f981.zip
libvncserver-6153bd69835da0e7217ae844bdba4e2ba676f981.tar.gz
Update java and scripts in classes/ssl. x11vnc: declare crypt() on all platforms. more wishes.
Diffstat (limited to 'x11vnc')
-rw-r--r--x11vnc/ChangeLog21
-rw-r--r--x11vnc/README6
-rw-r--r--x11vnc/appshare.c6
-rw-r--r--x11vnc/gui.c15
-rw-r--r--x11vnc/unixpw.c6
-rw-r--r--x11vnc/x11vnc.12
-rw-r--r--x11vnc/x11vnc_defs.c2
7 files changed, 38 insertions, 20 deletions
diff --git a/x11vnc/ChangeLog b/x11vnc/ChangeLog
index 428ce06..cb9e49a 100644
--- a/x11vnc/ChangeLog
+++ b/x11vnc/ChangeLog
@@ -1,12 +1,17 @@
+2009-12-04 Karl Runge <runge@karlrunge.com>
+ * classes/ssl: update binaries; new signing key; ss_vncviewer.
+ * x11vnc: add more wish possibilities for -gui. Declare crypt()
+ on all platforms (disable with -DDO_NOT_DECLARE_CRYPT.)
+
2009-12-02 Karl Runge <runge@karlrunge.com>
- * x11vnc: -appshare mode for sharing an application windows intead
- of the entire desktop. map port + 5500 in reverse connect.
- Add id_cmd remote control functions for id (and other) windows.
- Allow zero port in SSL reverse connections. Adjust delays
- between multiple reverse connections; X11VNC_REVERSE_SLEEP_MAX
- env var. Add some missing mutex locks; add INPUT_LOCK and
- threads_drop_input. More safety in -threads mode for new
- framebuffer change. Fix some stderr leaking in -inetd mode.
+ * x11vnc: -appshare mode for sharing an application windows of the
+ entire desktop. map port + 5500 in reverse connect. Add id_cmd
+ remote control functions for id (and other) windows. Allow zero
+ port in SSL reverse connections. Adjust delays between multiple
+ reverse connections; X11VNC_REVERSE_SLEEP_MAX env var. Add some
+ missing mutex locks; add INPUT_LOCK and threads_drop_input.
+ More safety in -threads mode for new framebuffer change. Fix
+ some stderr leaking in -inetd mode.
2009-11-18 Karl Runge <runge@karlrunge.com>
* x11vnc: use -timeout setting for reverse connections too.
diff --git a/x11vnc/README b/x11vnc/README
index 50ff446..b041f1a 100644
--- a/x11vnc/README
+++ b/x11vnc/README
@@ -2,7 +2,7 @@
Copyright (C) 2002-2009 Karl J. Runge <runge@karlrunge.com>
All rights reserved.
-x11vnc README file Date: Wed Dec 2 22:03:06 EST 2009
+x11vnc README file Date: Fri Dec 4 20:44:56 EST 2009
The following information is taken from these URLs:
@@ -12894,7 +12894,7 @@ x11vnc: a VNC server for real X displays
Here are all of x11vnc command line options:
% x11vnc -opts (see below for -help long descriptions)
-x11vnc: allow VNC connections to real X11 displays. 0.9.9 lastmod: 2009-12-02
+x11vnc: allow VNC connections to real X11 displays. 0.9.9 lastmod: 2009-12-04
x11vnc options:
-display disp -auth file -N
@@ -13021,7 +13021,7 @@ libvncserver-tight-extension options:
% x11vnc -help
-x11vnc: allow VNC connections to real X11 displays. 0.9.9 lastmod: 2009-12-02
+x11vnc: allow VNC connections to real X11 displays. 0.9.9 lastmod: 2009-12-04
(type "x11vnc -opts" to just list the options.)
diff --git a/x11vnc/appshare.c b/x11vnc/appshare.c
index 72c2bdd..81d9949 100644
--- a/x11vnc/appshare.c
+++ b/x11vnc/appshare.c
@@ -473,7 +473,7 @@ static void launch(Window win) {
char *q = strstr(cmd, "-connect_or_exit");
if (q) q = strstr(q, "_or_exit");
if (q) {
- int i;
+ unsigned int i;
for (i=0; i < strlen("_or_exit"); i++) {
*q = ' ';
q++;
@@ -907,7 +907,7 @@ static void recurse_search(int level, int level_max, Window top, Window app, int
ok = XQueryTree(dpy, top, &r, &parent, &list, &nchild);
if (ok) {
int i;
- for (i=0; i < nchild; i++) {
+ for (i=0; i < (int) nchild; i++) {
w = list[i];
if (w == None || find_win(w) >= 0) {
continue;
@@ -919,7 +919,7 @@ static void recurse_search(int level, int level_max, Window top, Window app, int
(*nw)++;
}
}
- for (i=0; i < nchild; i++) {
+ for (i=0; i < (int) nchild; i++) {
w = list[i];
if (w == None || ours(w)) {
continue;
diff --git a/x11vnc/gui.c b/x11vnc/gui.c
index 3a05ac8..a7f2713 100644
--- a/x11vnc/gui.c
+++ b/x11vnc/gui.c
@@ -261,9 +261,11 @@ static void sigusr1 (int sig) {
if (0) sig = 0;
}
+/* Most of the following mess is for wish on Solaris: */
+
static char *extra_path = ":/usr/local/bin:/usr/bin/X11:/usr/sfw/bin"
- ":/usr/X11R6/bin:/usr/openwin/bin:/usr/dt/bin";
-static char *wishes[] = {"wish8.4", "wish", "wish8.3", "wish8.5", "wish8.0", NULL};
+ ":/usr/X11R6/bin:/usr/openwin/bin:/usr/dt/bin:/opt/sfw/bin";
+static char *wishes[] = {"wish8.4", "wish", "wish8.3", "wish8.5", "wish8.6", "wish8.7", "wishx", "wish8.0", NULL};
static void run_gui(char *gui_xdisplay, int connect_to_x11vnc, int start_x11vnc,
int simple_gui, pid_t parent, char *gui_opts) {
@@ -440,6 +442,15 @@ if (0) fprintf(stderr, "run_gui: %s -- %d %d\n", gui_xdisplay, connect_to_x11vnc
if (!wish) {
wish = strdup("wish");
}
+ if (getenv("WISH")) {
+ char *w = getenv("WISH");
+ if (strcmp(w, "")) {
+ wish = strdup(w);
+ }
+ }
+ if (getenv("DEBUG_WISH")) {
+ fprintf(stderr, "wish: %s\n", wish);
+ }
set_env("PATH", full_path);
set_env("DISPLAY", gui_xdisplay);
set_env("X11VNC_PROG", program_name);
diff --git a/x11vnc/unixpw.c b/x11vnc/unixpw.c
index 92eec53..7f8f940 100644
--- a/x11vnc/unixpw.c
+++ b/x11vnc/unixpw.c
@@ -37,7 +37,9 @@ so, delete this exception statement from your version.
extern int grantpt(int);
extern int unlockpt(int);
extern char *ptsname(int);
-/* XXX remove need for this */
+#endif
+
+#ifndef DO_NOT_DECLARE_CRYPT
extern char *crypt(const char*, const char *);
#endif
@@ -800,7 +802,7 @@ int crypt_verify(char *user, char *pass) {
fprintf(stderr, "user='%s' pass='%s' realpw='%s' cr='%s'\n",
user, pass, realpw, cr ? cr : "(null)");
}
- if (cr == NULL) {
+ if (cr == NULL || cr[0] == '\0') {
return 0;
}
if (!strcmp(cr, realpw)) {
diff --git a/x11vnc/x11vnc.1 b/x11vnc/x11vnc.1
index f6ef2c8..b51ce0c 100644
--- a/x11vnc/x11vnc.1
+++ b/x11vnc/x11vnc.1
@@ -2,7 +2,7 @@
.TH X11VNC "1" "December 2009" "x11vnc " "User Commands"
.SH NAME
x11vnc - allow VNC connections to real X11 displays
- version: 0.9.9, lastmod: 2009-12-02
+ version: 0.9.9, lastmod: 2009-12-04
.SH SYNOPSIS
.B x11vnc
[OPTION]...
diff --git a/x11vnc/x11vnc_defs.c b/x11vnc/x11vnc_defs.c
index 5cafc49..f5c35b4 100644
--- a/x11vnc/x11vnc_defs.c
+++ b/x11vnc/x11vnc_defs.c
@@ -47,7 +47,7 @@ int xtrap_base_event_type = 0;
int xdamage_base_event_type = 0;
/* date +'lastmod: %Y-%m-%d' */
-char lastmod[] = "0.9.9 lastmod: 2009-12-02";
+char lastmod[] = "0.9.9 lastmod: 2009-12-04";
/* X display info */
OpenPOWER on IntegriCloud