mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Correct MFS behaviour when path starts with directory separator.
This commit is contained in:
@@ -49,6 +49,8 @@ namespace DiscImageChef.Filesystems.AppleMFS
|
||||
string[] pathElements = path.Split(new[] {'/'}, StringSplitOptions.RemoveEmptyEntries);
|
||||
if(pathElements.Length != 1) return Errno.NotSupported;
|
||||
|
||||
path = pathElements[0];
|
||||
|
||||
xattrs = new List<string>();
|
||||
|
||||
if(debug)
|
||||
@@ -91,6 +93,8 @@ namespace DiscImageChef.Filesystems.AppleMFS
|
||||
string[] pathElements = path.Split(new[] {'/'}, StringSplitOptions.RemoveEmptyEntries);
|
||||
if(pathElements.Length != 1) return Errno.NotSupported;
|
||||
|
||||
path = pathElements[0];
|
||||
|
||||
if(debug)
|
||||
if(string.Compare(path, "$", StringComparison.InvariantCulture) == 0 ||
|
||||
string.Compare(path, "$Bitmap", StringComparison.InvariantCulture) == 0 ||
|
||||
|
||||
Reference in New Issue
Block a user