On Mon, Dec 10, 2001 at 03:15:57PM -0500, Glenn Maynard wrote:
> On Mon, Dec 10, 2001 at 01:31:09PM +0300, Alexander V. Lukyanov wrote:
> > This is because url_session is not given with foreground priority.
> > Since you have replaced rm, I'll not bother with fixing it, only mkdir.
>
> That didn't fix it, though. Both cases still stall for a second for me.
I have added Fg/Bg, but forgot to set priority on newly created session.
> I'll send what I have. Still no URL support (or redirection). The
> below problem is more important, too.
I have applied the patch (without some changes). Then I fixed dirname_alloc;
made ChmodJob to handle undefined mode; and then made find support URLs and
home dir ~ more or less correcly. It was not very hard to do, but required
GetFileInfo modifications for special handling of tilde.
> I changed the way GetFileInfo finds the path to verify: it Chdir()s to
> the full path (without validation), grabs the basename of the CWD, then
> Chdir("..")s (with validation). (This is only for the "try the path as
> a file" case.) This fixes GetFileInfo paths ending with "." or ".."
> (ie "cls -ld ..".) It simply lets FileAccess handle paths (including
> relative paths) so it doesn't have to. Since we do another Chdir
> immediately afterwards, the initial one is never actually sent.
Good. There is another special case when the home dir is the root directory.
I have added special code for ~, it has a misfeature of not returning
detailed info on ~, but it should not matter much. It is not always
possible to know real home path, so it must be ok.
--
Alexander.