20xorg-common_process-args doesn't work with zsh

Bug #82903 reported by Felix Eckhofer on 2007-02-02
Affects Status Importance Assigned to Milestone
xorg (Ubuntu)

Bug Description

Binary package hint: xinit

In line 36 /etc/X11/Xsession.d/20xorg-common_process-args calls "which". This will fail for some reason if zsh is used and $1 contains an absolute path:
     STARTUP_FULL_PATH=$(which $1 || true)
Simply changing it to
     STARTUP_FULL_PATH=$(/usr/bin/which $1 || true)
so that no builtin is called made it possible to login with zsh as login shell (after applying the workaround for http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=368818).


Timo Aaltonen (tjaalton) wrote :

Fix committed to Debian git.

Changed in xinit:
importance: Undecided → Low
status: Unconfirmed → Fix Committed
Timo Aaltonen (tjaalton) wrote :

Just to be sure, where does your /bin/sh point to? (run ls -l /bin/sh)

Felix Eckhofer (eckhofer) wrote :

felix@pollux:~$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2007-01-02 17:22 /bin/sh -> dash

Timo Aaltonen (tjaalton) wrote :

Fixed long ago.

Changed in xorg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers