mirror of
https://github.com/ksherlock/afp.git
synced 2025-03-12 03:29:58 +00:00
darwin resource_file::write() was writing to the data fork :/
This commit is contained in:
parent
bf4399146d
commit
0e9c8616f3
@ -571,7 +571,7 @@ namespace afp {
|
|||||||
if (ec) return false;
|
if (ec) return false;
|
||||||
::close(fd);
|
::close(fd);
|
||||||
|
|
||||||
int rfd = _(::open(path.c_str(), O_WRONLY | O_CREAT | O_TRUNC, 0666), ec);
|
int rfd = _(::open(s.c_str(), O_WRONLY | O_CREAT | O_TRUNC, 0666), ec);
|
||||||
if (rfd < 0) return 0;
|
if (rfd < 0) return 0;
|
||||||
|
|
||||||
auto rv = _(::write(rfd, buffer, n), ec);
|
auto rv = _(::write(rfd, buffer, n), ec);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user