This commit is contained in:
Kelvin Sherlock 2016-08-03 20:28:16 -04:00
parent e09ce3834b
commit da54c738ae
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ void one_file(const std::string &data, const std::string &rsrc) noexcept try {
case AS_RESOURCE: {
#ifdef __sun__
int rfd = openat(fd, "com.apple.ResourceFork", O_XATTR | O_CREAT | O_TRUNC | O_WRONLY, 0666);
if (rfds < 0) throw_errno("com.apple.ResourceFork");
if (rfd < 0) throw_errno("com.apple.ResourceFork");
defer close_fd([rfd](){ close(rfd); });
ssize_t ok = write(rfd, mf.data() + e.entryOffset, e.entryLength);