Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
143 user(s) are online (66 user(s) are browsing Forums)

Members: 0
Guests: 143

more...

Headlines

 
  Register To Post  

RHash bug
Home away from home
Home away from home


See User information
I'm currently using this very handy port of RHash, which seems compatible with the Windows version:
http://os4depot.net/index.php?functio ... tility/filetool/rhash.lha

I noticed a bug: Recursive mode doesn't work if the specified folder is the root of the volume, such as Work: .

I couldn't find any contact information :( , so posting here (as well as on OS4 Depot comments) in case the mysterious porter/uploader happens to spot this... (Or someone else knows them & can point them here.)

Author of the PortablE programming language.
Go to top
Re: RHash bug
Just can't stay away
Just can't stay away


See User information
@ChrisH

renewolsen/gmail com

/ =@ space=.

AmigaOne X1000.
Radeon RX550

http://www.tinylife.org.uk/
Go to top
Re: RHash bug
Not too shy to talk
Not too shy to talk


See User information
@ddni

There are two utils called RHash and he is not using my version.

“The best thing about a boolean is even if you are wrong, you are only off by a bit.”
Go to top
Re: RHash bug
Just can't stay away
Just can't stay away


See User information
@rwo

Ahh sorry Chris. Thx RWO.

AmigaOne X1000.
Radeon RX550

http://www.tinylife.org.uk/
Go to top
Re: RHash bug
Just can't stay away
Just can't stay away


See User information
@ChrisH

Have you tried specifying the path as "/Work" instead of "Work:"?

Go to top
Re: RHash bug
Home away from home
Home away from home


See User information
@salass00
No, because "Work:some/folder" works just fine. But "Work:" doesn't.

Author of the PortablE programming language.
Go to top
Re: RHash bug
Home away from home
Home away from home


See User information
@ChrisH

Quote:

No, because "Work:some/folder" works just fine. But "Work:" doesn't.


It's quite common issue with libunix based apps to not read files in the root dir correctly when present with that dir in AmigaOS format.

So do as you are told and try /Work



Go to top
Re: RHash bug
Home away from home
Home away from home


See User information
@broadblues
Sadly /Work does not work (nor similar variations). The problem is that it seems to treat Work: as if it was a folder, and so when it tries to enter (say) Work:example the path it tries to use is Work:/example .

Author of the PortablE programming language.
Go to top
Re: RHash bug
Amigans Defender
Amigans Defender


See User information
@ChrisH

Quote:
Work:/example


Of course it's up to the filesystem how it interprets that. I thought that a request for the parent of root returned root, at least on FFS. I've just checked and only ram-handler (and my webdav-handler, more by accident than design) treats the parent of root as root, smbfs redirects to SYS: (I'd consider this a bug) and FFS and SFS2 error it as an invalid path.

I'm not blaming the filesystems btw, I find path handling is often broken on lazy ports.

If you want a workaround you could create a soft-link in RAM: pointing to the volume you actually want to scan, and scan the link instead. That should work.

Go to top
Re: RHash bug
Just can't stay away
Just can't stay away


See User information
@Chris

Quote:

Of course it's up to the filesystem how it interprets that. I thought that a request for the parent of root returned root, at least on FFS. I've just checked and only ram-handler (and my webdav-handler, more by accident than design) treats the parent of root as root, smbfs redirects to SYS: (I'd consider this a bug) and FFS and SFS2 error it as an invalid path.


The correct response for ACTION_PARENT/FSParentDir() on a root lock is:

Res1: ZERO
Res2: 0 (no error)

Quoting from dos.dospackets.doc:
Quote:

If the lock has no parent, then a lock of ZERO is returned. No secondary error code shall be returned for ZERO root locks.

Go to top
Re: RHash bug
Not too shy to talk
Not too shy to talk


See User information

Which means that SMBFS is the only one which does it right.

Quote:
smbfs redirects to SYS: (I'd consider this a bug)

Go to top
Re: RHash bug
Just can't stay away
Just can't stay away


See User information
Author of the other version is rhash.admin on gmail , com

Philippe 'Elwood' FERRUCCI
Sam460ex 1.10 Ghz
http://elwoodb.free.fr
Go to top
Re: RHash bug
Amigans Defender
Amigans Defender


See User information
@thomas

Surely a lock of 0 is an error code, rather than equivalent to SYS:?

This also assumes "dir ram:/t" uses ACTION_PARENT to try to construct a sensible path, which it might not.

Either way, sounds like at least ram-handler has a bug.

Go to top
Re: RHash bug
Home away from home
Home away from home


See User information
never mind!

Author of the PortablE programming language.
Go to top
Re: RHash bug
Not too shy to talk
Not too shy to talk


See User information
@ChrisH

Hey Chris.. I just wanted to mention I added support for SFV File Generation.

Not sure if this was the option you used in the other rhash.

My have rHash command has standard Amiga DOS wildcard support, so 'Work:' should work.

René

“The best thing about a boolean is even if you are wrong, you are only off by a bit.”
Go to top
Re: RHash bug
Home away from home
Home away from home


See User information
@Elwood Quote:
Author of the other version is rhash.admin on gmail , com

Are you SURE about that? That's the email address of the ORIGINAL author (Aleksey Kravchenko). I have no reason to think that he was the one responsible for the OS4 port...

Author of the PortablE programming language.
Go to top
Re: RHash bug
Home away from home
Home away from home


See User information
@rwo Quote:
Hey Chris.. I just wanted to mention I added support for SFV File Generation.

I don't know, I used whatever the default format was. It's homepage does mention SFV, so I guess that's the case. In which case your program might be a better solution if I need to do this again :)

Author of the PortablE programming language.
Go to top
Re: RHash bug
Just can't stay away
Just can't stay away


See User information
@ChrisH

Oops, sorry you're right.

Philippe 'Elwood' FERRUCCI
Sam460ex 1.10 Ghz
http://elwoodb.free.fr
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project