git-svn-id: https://profuse.googlecode.com/svn/trunk@18 aa027e90-d47c-11dd-86d7-074df07e0730

This commit is contained in:
ksherlock 2009-01-17 20:49:32 +00:00
parent f6018484ce
commit 3b72264d30
2 changed files with 12 additions and 4 deletions

View File

@ -36,4 +36,5 @@ bool DiskCopy42::Load(const uint8_t *buffer)
if (private_word != 0x100) return false; if (private_word != 0x100) return false;
return true; return true;
} }

View File

@ -122,8 +122,11 @@ static void xattr_textencoding(FileEntry& e, fuse_req_t req, size_t size, off_t
const char attr[] = "MACINTOSH;0"; const char attr[] = "MACINTOSH;0";
unsigned attr_size = sizeof(attr) - 1; unsigned attr_size = sizeof(attr) - 1;
// currently only valid for Teach Files. // currently only valid for Teach Files, "ASCII" Text
if (e.file_type != 0x50 || e.aux_type != 0x5445)
if (e.file_type == 0x04 || (e.file_type == 0x50 && e.aux_type == 0x5445))
/* do nothing */ ;
else
{ {
ERROR(true, ENOENT) ERROR(true, ENOENT)
} }
@ -304,7 +307,9 @@ static void prodos_listxattr(fuse_req_t req, fuse_ino_t ino, size_t size)
break; break;
} }
if (e.file_type == 0x50 && e.aux_type == 0x5445) // teach text if (
e.file_type == 0x04
|| (e.file_type == 0x50 && e.aux_type == 0x5445)) // teach text
{ {
attr += "com.apple.TextEncoding"; attr += "com.apple.TextEncoding";
attr.append(1, 0); attr.append(1, 0);
@ -975,7 +980,9 @@ int main(int argc, char *argv[])
// use 512byte blocks. // use 512byte blocks.
#if __APPLE__
fuse_opt_add_arg(&args, "-oiosize=512"); fuse_opt_add_arg(&args, "-oiosize=512");
#endif
do { do {