Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 231492 - net-misc/tightvnc-1.3.9-r1: incorrect selection of users' home directories
Summary: net-misc/tightvnc-1.3.9-r1: incorrect selection of users' home directories
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Raúl Porcel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-11 08:54 UTC by Christoph Schulz
Modified: 2008-07-15 14:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Schulz 2008-07-11 08:54:29 UTC
The tightvnc ebuild assumes all users have their home directory in /home. The relevant part of the build is this one:

su ${user%%:*} -c "cd  /home/${user%%:*} && vncserver :${user##*:} $VNC_OPTS" &>/dev/null

I propose to change it to:

su ${user%%:*} -c "cd  ~${user%%:*} && vncserver :${user##*:} $VNC_OPTS" &>/dev/null

which correctly works with users having their home directory somewhere else.


Reproducible: Always

Steps to Reproduce:
1. Create any user with a home directory not in /home.
2. Edit /etc/conf.d/vnc to include that user in the DISPLAYS variable.
3. Start tightvnc via "/etc/init.d/vnc start".

Actual Results:  
The tightvnc server is not started.

Expected Results:  
The tightvnc server should start.

Portage 2.1.4.4 (default-linux/x86/2007.0/server, gcc-4.1.2, glibc-2.6.1-r0, 2.6
.24-gentoo-r8 i686)
=================================================================
System uname: 2.6.24-gentoo-r8 i686 Intel(R) Core(TM)2 Quad CPU Q9450 @ 2.66GHz
Timestamp of tree: Fri, 11 Jul 2008 00:45:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r2
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.ipv6.uni-muenster.de/pub/linux/distributions/gentoo "
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LINGUAS="de en en_US en_GB"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/java-overlay /usr/portage/local/layman/dertobi123 /usr/portage/local/layman/gentoo-de /usr/portage/local/layman/webapps-experimental /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="a52 aac acl acpi alsa amr apache2 bash-completion berkdb bzip2 bzlib caps cdda cddb cdio cli cracklib crypt cups curl dri dts dvd e2s encode expat faad fam ffmpeg flac gd gdbm gif gmp gpm hel icecast iconv imagemagick imap imlib innodb ipv6 isdnlog ivtv java jbig jpeg jpeg2k mad matroska midi mjpeg mmap mmx mp3 mpeg mudflap mysql mysqli ncurses netpbm nls nptl nptlonly ogg oggvorbis openmp oss pam pcre pdflib perl php png postgres ppds pppd python readline reflection rtsp samba session shout sout speex spell spl sse ssl stream svg tcpd theora tiff truetype unicode unzip urandom v4l vcd vlm vorbis wmf x264 x86 xattr xml xml2 xorg xprint xvid zip zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_US en_GB" USERLAND="GNU" VIDEO_CARDS="mach64"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Raúl Porcel (RETIRED) gentoo-dev 2008-07-15 14:23:59 UTC
I fixed this yesterday, closing.