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

Bug #82903 reported by Felix Eckhofer
8
Affects Status Importance Assigned to Milestone
xorg (Ubuntu)
Fix Released
Low
Unassigned

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).

regards,
felix

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Fix committed to Debian git.

Changed in xinit:
importance: Undecided → Low
status: Unconfirmed → Fix Committed
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

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

Revision history for this message
Felix Eckhofer (eckhofer) wrote :

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

Revision history for this message
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  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.