- priority: 5 --> 2
- status: open --> closed-fixed
OriginalBugID: 4169 Bug
Version: 8.3b1
SubmitDate: '2000-02-14'
LastModified: '2000-02-22'
Severity: LOW
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Linux
OSVersion: Linux, Kernel 2.2.14
FixedDate: '2000-10-25'
ClosedDate: '2000-02-22'
Name:
Harald Kirsch
Extensions:
tcl8.3.0
Comments:
% uname -a
Linux kirsch.dialup.fhg.de 2.2.14 #1 Sat Jan 22 10:25:09 CET 2000 i586
unknown
I assume this is rather a bug of Linux.
mkdir bla; cd bla; chmod 000 .; /bin/pwd
does also not return an error, but probably should.
ReproducibleScript:
Actually this is about 8.3.0. I ran `make test'.
ObservedBehavior:
==== cmdMZ-1.4 Tcl_PwdObjCmd: failure FAILED
==== Contents of test case:
file delete -force foo
file mkdir foo
set cwd [pwd]
cd foo
file attr . -permissions 000
set result [list [catch {pwd} msg] $msg]
cd $cwd
file delete -force foo
set result
---- Result was:
0 /home1/kir/tmp/tcl8.3.0/unix/foo
---- Result should have been:
1 {error getting working directory name: permission denied}
==== cmdMZ-1.4 FAILED
DesiredBehavior:
Well, the test should not fail.
No, it shouldn't. Tell that to the Linux guys. I believe this is
a linux bug (you can simulate with cd/chmod/pwd at the command line).
Linux is the only Unix OS that I know of that allows this oddity
(which I believe is incorrect).
-- 02/22/2000 hobbs