Set lock flag unless destory, rename and write are all enabled

This commit is contained in:
ThomasFok 2023-01-14 15:28:27 +00:00 committed by GitHub
parent 8ca3e27fc4
commit 3b99c1fdd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ public class ImportCommand extends ReadWriteDiskCommandOptions {
builder.fileData(as.getDataFork());
builder.resourceData(Optional.ofNullable(as.getResourceFork()));
builder.prodosFiletype(fileType);
builder.locked(info.getAccess() == 0xc3);
builder.locked((info.getAccess()&0xc2) != 0xc2); //Unlocked if destory, rename and write are all enabled
builder.auxiliaryType(info.getAuxType());
if (as.getFileDatesInfo() != null) {