Ignore MDDF password if not present.

This commit is contained in:
2016-07-27 02:41:26 +01:00
parent f1d2130d80
commit 95a7bc96a0

View File

@@ -39,6 +39,7 @@ using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.CodeDom.Compiler;
namespace DiscImageChef.Filesystems.LisaFS
{
@@ -79,7 +80,11 @@ namespace DiscImageChef.Filesystems.LisaFS
xattrs = new List<string>();
if(fileId == FILEID_MDDF)
xattrs.Add("com.apple.lisa.password");
{
byte[] buf = Encoding.ASCII.GetBytes(mddf.password);
if(buf.Length > 0)
xattrs.Add("com.apple.lisa.password");
}
}
else
{