mirror of
https://github.com/ksherlock/dot_clean.git
synced 2025-04-07 18:38:43 +00:00
rfds
This commit is contained in:
parent
e09ce3834b
commit
da54c738ae
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user