Package: vnc4server Version: 4.1.1+X4.3.0-20 Severity: important Tags: patch
When trying to start vnc4server when my ~/.vnc/ directory is a symbolic link, I get the following message: vnc4server: Wrong type or access mode of /home/jussi/.vnc. This is due using lstat() function in vnc4server starting script to check if file is a directory instead of stat(). Following patch fixes it. -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages vnc4server depends on: ii libc6 2.3.6.ds1-11 GNU C Library: Shared libraries ii libgcc1 1:4.1.1-21 GCC support library ii libice6 1:1.0.1-2 X11 Inter-Client Exchange library ii libsm6 1:1.0.1-3 X11 Session Management library ii libstdc++6 4.1.1-21 The GNU Standard C++ Library v3 ii libx11-6 2:1.0.3-5 X11 client-side library ii libxext6 1:1.0.1-2 X11 miscellaneous extension librar ii libxtst6 1:1.0.1-5 X11 Testing -- Resource extension ii vnc-common 3.3.7-14 Virtual network computing server s ii x11-common 1:7.1.0-12 X Window System (X.Org) infrastruc ii xbase-clients 1:7.1.ds1-2 miscellaneous X clients ii zlib1g 1:1.2.3-13 compression library - runtime Versions of packages vnc4server recommends: ii xfonts-base 1:1.0.0-4 standard fonts for X -- no debconf information
diff -Naur vnc4-4.1.1+X4.3.0.orig/unix/vncserver vnc4-4.1.1+X4.3.0.patched/unix/vncserver --- vnc4-4.1.1+X4.3.0.orig/unix/vncserver 2007-02-16 23:26:27.353649872 +0200 +++ vnc4-4.1.1+X4.3.0.patched/unix/vncserver 2007-02-16 23:40:06.294151992 +0200 @@ -179,7 +179,7 @@ } } -($z,$z,$mode) = lstat("$vncUserDir"); +($z,$z,$mode) = stat("$vncUserDir"); if (!-d _ || !-o _ || ($vncUserDirUnderTmp && ($mode & 0777) != 0700)) { die "$prog: Wrong type or access mode of $vncUserDir.\n"; }