mirror of
https://github.com/ksherlock/mpw.git
synced 2024-05-28 22:41:33 +00:00
linux.
This commit is contained in:
parent
ddf67751c3
commit
69e09e3f11
|
@ -160,7 +160,7 @@ namespace {
|
|||
if (eof == new_eof) return MacOS::noErr;
|
||||
|
||||
buffer.resize(new_eof, 0);
|
||||
int ok = fsetxattr(_fd, XATTR_RESOURCEFORK_NAME, buffer->data(), buffer.size(), 0);
|
||||
int ok = fsetxattr(_fd, XATTR_RESOURCEFORK_NAME, buffer.data(), buffer.size(), 0);
|
||||
if (ok < 0) return macos_error_from_errno();
|
||||
return new_eof;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user