From 38e4f135aceae412be795ab733c5add21c6a9a4d Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Wed, 11 Jan 2017 14:31:15 -0500 Subject: [PATCH] compile w/ windows --- set_file_type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/set_file_type.cpp b/set_file_type.cpp index f0b2bbf..36f7c5d 100644 --- a/set_file_type.cpp +++ b/set_file_type.cpp @@ -212,7 +212,7 @@ int set_file_type(const std::string &path, uint16_t file_type, uint32_t aux_type std::string xpath(path); xpath.append(":AFP_AfpInfo"); - int fd = open(path.c_str(), O_RDWR | O_CREAT | O_BINARY, 0666); + int fd = open(xpath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0666); if (fd < 0) return -1; ok = read(fd, &info, sizeof(info));