Renaming a file or directory to its own name is legal under AmigaOS, so
ensure that this case is a no-op and returns success.
This fixes the error encountered when creating a new drawer under SHARE:
and accepting the default name of "Unnamed1", for example.