Article View: gnu.emacs.bug
Article #99635dired'ing non-readable directory
From: M.Maclaren
Date: Thu, 02 Aug 1990 15:10
Date: Thu, 02 Aug 1990 15:10
40 lines
1813 bytes
1813 bytes
Little bug reared its head the other day:
------------------------------------------------------------
Current directory: ~ccsmm
M-x dired
Dired (directory): ~ccsmh/tmp
Reading directory /user/gdt/cc/s/ccsmh/tmp...Done
And I get a dired of my (~ccsmm/tmp) directory. Puzzling?
------------------------------------------------------------
Reason: permissions on ~ccsmh directory
drwx------ 10 ccsmh 1024 Aug 2 15:07 /user/gdt/cc/s/ccsmh
And, I believe, no check on a chdir() in callproc.c
> if (XTYPE (bf_cur->directory) == Lisp_String)
> {
> register unsigned char *temp;
> register int i;
>
> i = XSTRING (bf_cur->directory)->size;
> temp = (unsigned char *) alloca (i + 2);
> bcopy (XSTRING (bf_cur->directory)->data, temp, i);
> if (temp[i - 1] != '/') temp[i++] = '/';
> temp[i] = 0;
> chdir (temp);
> }
>
Maybe it should have been spotted somewhere else as well?
Don't know if this would cause any nasty problems in other areas....
M-x emacs-version
GNU Emacs 18.52.4 of Thu Mar 16 1989 on gdt (berkeley-unix)
But it's still in:
GNU Emacs 18.55.0 of Fri Jul 17 1990 on m (Domain/OS)
Martin
Technical Details
Message-ID:
<9008021516.AA28904@aeneas.MIT.EDU>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!bu.edu!xylogics!samsung!cs.utexas.edu!tut.cis.ohio-state.edu!gdt.bath.ac.uk!M.MaclarenShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,7650f442c24253a2,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-08-02 08:10:06 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!bu.edu!xylogics!samsung!cs.utexas.edu!tut.cis.ohio-state.edu!gdt.bath.ac.uk!M.Maclaren From: M.Maclaren@gdt.bath.ac.uk Newsgroups: gnu.emacs.bug Subject: dired'ing non-readable directory Message-ID: <9008021516.AA28904@aeneas.MIT.EDU> Date: 2 Aug 90 15:10:06 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 40 Posted: Thu Aug 2 16:10:06 1990