From: [EMAIL PROTECTED] To: bug-bash@gnu.org Subject: Moving $PWD into restricted areas causes trouble with su
Configuration Information [Automatically generated, do not change]: Machine: i686 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' - DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -O2 -march=athlon-xp - fomit-frame-pointer uname output: Linux lynxlynxsp 2.6.11-gentoo-r6 #1 Thu Apr 14 08:07:59 CEST 2005 i686 AMD Athlon(tm) XP 1700+ AuthenticAMD GNU/Linux Machine Type: i686-pc-linux-gnu Bash Version: 2.05b Patch Level: 0 Release Status: release Description: The example is clear enough, I hope. When you su from a non-exsisting folder, the result is not "optimal". I'm not sure if this is the right place - should I've sent this to the su buglist? LP and keep up the great work! Repeat-By: Here's an example: [EMAIL PROTECTED] lgames $ mkdir test [EMAIL PROTECTED] lgames $ cd test/ [EMAIL PROTECTED] test $ su Password: lynxlynxsp test # mv ../test/ ~ lynxlynxsp test # exit exit [EMAIL PROTECTED] test $ pwd /lgames/test [EMAIL PROTECTED] test $ su Password: shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory sh_makepath: could not get current directory: getcwd: cannot access parent directories: No such file or directory lynxlynxsp test # pwd pwd: could not get current directory: getcwd: cannot access parent directories: No such file or directory lynxlynxsp test # cd .. chdir: could not get current directory: getcwd: cannot access parent directories: No such file or directory lynxlynxsp .. # pwd .. lynxlynxsp .. # ____________________ http://www.email.si/ _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash