diff options
author | 2003-03-24 15:38:19 +0000 | |
---|---|---|
committer | 2003-03-24 15:38:19 +0000 | |
commit | e8329c2b9d41eba994cfae7090b6661b3d99315c (patch) | |
tree | d91ffa311d51edea26e959bd77f1ee57ca427a3f /net-misc/vnc/files | |
parent | Update SiS driver (diff) | |
download | historical-e8329c2b9d41eba994cfae7090b6661b3d99315c.tar.gz historical-e8329c2b9d41eba994cfae7090b6661b3d99315c.tar.bz2 historical-e8329c2b9d41eba994cfae7090b6661b3d99315c.zip |
version bump
Diffstat (limited to 'net-misc/vnc/files')
-rw-r--r-- | net-misc/vnc/files/digest-vnc-3.3.7 | 1 | ||||
-rw-r--r-- | net-misc/vnc/files/vnc-3.3.7-gentoo.security.patch | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/net-misc/vnc/files/digest-vnc-3.3.7 b/net-misc/vnc/files/digest-vnc-3.3.7 new file mode 100644 index 000000000000..c5af65bf0fb4 --- /dev/null +++ b/net-misc/vnc/files/digest-vnc-3.3.7 @@ -0,0 +1 @@ +MD5 511ffbc8ed8d9df82e7c67852164728c vnc-3.3.7-unixsrc.tar.gz 2160226 diff --git a/net-misc/vnc/files/vnc-3.3.7-gentoo.security.patch b/net-misc/vnc/files/vnc-3.3.7-gentoo.security.patch new file mode 100644 index 000000000000..7a32a38d7124 --- /dev/null +++ b/net-misc/vnc/files/vnc-3.3.7-gentoo.security.patch @@ -0,0 +1,20 @@ +--- /tmp/vncserver 2003-02-21 17:47:11.000000000 +0000 ++++ vncserver 2003-02-21 17:47:41.000000000 +0000 +@@ -120,15 +120,8 @@ + $desktopLog = "$vncUserDir/$host:$displayNumber.log"; + unlink($desktopLog); + +-# Make an X server cookie - use as the seed the sum of the current time, our +-# PID and part of the encrypted form of the password. Ideally we'd use +-# /dev/urandom, but that's only available on Linux. +- +-srand(time+$$+unpack("L",`cat $vncUserDir/passwd`)); +-$cookie = ""; +-for (1..16) { +- $cookie .= sprintf("%02x", int(rand(256)) % 256); +-} ++# Make an X server cookie - use mcookie ++$cookie = `/usr/bin/mcookie`; + + system("xauth -f $xauthorityFile add $host:$displayNumber . $cookie"); + system("xauth -f $xauthorityFile add $host/unix:$displayNumber . $cookie"); |