bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Moving $PWD into restricted areas causes trouble with su


From: jaka kranjc
Subject: Moving $PWD into restricted areas causes trouble with su
Date: Sat, 7 May 2005 18:06:49 +0200

From: address@hidden
To: address@hidden
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:
address@hidden lgames $ mkdir test
address@hidden lgames $ cd test/
address@hidden test $ su
Password:
lynxlynxsp test # mv ../test/ ~
lynxlynxsp test # exit
exit
address@hidden test $ pwd
/lgames/test
address@hidden 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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]