Re: [hatari-devel] Bug(s) in GEMDOS Dsetpath() emulation |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: "Roger Burrows" <anodyne@xxxxxxxxxxxx>
- Subject: Re: [hatari-devel] Bug(s) in GEMDOS Dsetpath() emulation
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Fri, 24 Apr 2020 11:27:49 +0200
- Cc: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1587720474; bh=2Wfft7jr8OPp0yIErN4PNAOXEBZMMUVm6b0k80WhYdI=; h=Date:From:To:Cc:Subject:From; b=eoHA2PhQdFRDYpEFnJgmS7UPsU/Hwvt0v2a+bnpgJUINthNUaFWnYMRDHTXTuXQo5 saKdNBjFsZZqPVqv911euddm6hU8TkZD7LLAW/1CqLIwJDDJnmFEqLF8TTPQ/FkuE+ wI4gNriGn90urU6d0jQBvy8w2f5w0Qx45lQH9CiaIEE/ChZOev0qfu5rL8//OsOeSo Mn15qJ3WjxuM/3RfKOT/OXoHL52w1cpYOnIXaOjNV0NcTFBH0XYo4C7PKq9LFqv8sF zm3u7/Xjr4XiaADik7sXeAFRA9398+httjng/EXQROQ9v3T9kxx+L1jpH1/fRH5Xs4 ITYDJj9G6Mt4A==
Am Mon, 20 Apr 2020 13:16:05 -0400
schrieb "Roger Burrows" <anodyne@xxxxxxxxxxxx>:
> On 20 Apr 2020 at 11:04, Roger Burrows wrote:
>
> > On 20 Apr 2020 at 16:44, Eero Tamminen wrote:
> > >
> > > On 4/19/20 9:57 PM, Roger Burrows wrote:
> > > > There are some related bugs in Dsetpath() handling:
> > > >
> > > > 1) Setting the path to '' (the empty string) should be valid,
> > > > and on
> > Atari
> > > TOS
> > > > effectively sets the path to the root of the specified drive;
> > >
> > > That seems illogical, if there's no drive root
> > > specified, paths should be relative to current
> > > directory...
> > >
> > I've just done some more testing and I think my original report was
> > wrong. There is still a bug in there somewhere (perhaps in
> > Dgetpath()), but I need to refine my testing program & test some
> > more before being quite so definite.
> OK, here is the definitive report :-). There is a bug in Dsetpath()
> and a bug in Dgetpath().
>
> (1) Under Atari TOS, attempting to set the empty path on a drive
> (Dsetpath("")) succeeds, and the current path is unchanged. Under
> Hatari GEMDOS emulation, this fails with an error code of -34 (and
> unsurprisingly the current path is unchanged).
>
> (2) Under Atari TOS, setting the path to the root (Dsetpath("\"))
> succeeds, and a subsequent Dgetpath() returns the empty string.
> Under Hatari GEMDOS emulation, Dsetpath("\") succeeds, but a
> subsequent Dgetpath() returns "\". [Note: to try to avoid confusion,
> I'm not using C string syntax, i.e. all the strings shown as "\" are
> one byte long containing the backslash character]
Thanks for the report, this should be fixed now.
Thomas