| index 4a5452b..17da9c3 100644 | ||
| --- a/plugin.json | ||
| +++ b/plugin.json | ||
| @@ -19,5 +19,11 @@ | ||
| 19 | 19 | "no_network" |
| 20 | 20 | ], |
| 21 | 21 | "trust_notice": "Executes native C code on your node. This plugin CAN CREATE, OVERWRITE, EDIT, MOVE AND DELETE FILES inside the directories you put on its allowlist (~/.scorpiox/connectors/plugin_filesystem/roots.json, or FS_ALLOWED_ROOTS; defaulting to /workspace and $HOME when unconfigured). Writes go through a temp file plus rename so a crash cannot leave a half-written file, move_file refuses to overwrite, and edit_file writes nothing if any edit fails to match. Everything outside the allowlist is refused after symlink resolution. It has no popen, no system, no socket and makes zero outbound network requests.", |
| 22 | - "homepage": "https://plugingit.scorpiox.net/repo?name=scorpiox-bot-plugin-filesystem" | |
| 22 | + "homepage": "https://plugingit.scorpiox.net/repo?name=scorpiox-bot-plugin-filesystem", | |
| 23 | + "cflags": [ | |
| 24 | + "-std=c99", | |
| 25 | + "-pedantic", | |
| 26 | + "-Wno-overlength-strings", | |
| 27 | + "-Ivendor/yyjson" | |
| 28 | + ] | |
| 23 | 29 | } |
| index 58a00b8..e003492 100644 | ||
| --- a/src/plugin_filesystem.c | ||
| +++ b/src/plugin_filesystem.c | ||
| @@ -64,6 +64,11 @@ | ||
| 64 | 64 | # include <direct.h> |
| 65 | 65 | # include <io.h> |
| 66 | 66 | # include <fcntl.h> |
| 67 | + /* WIN32_LEAN_AND_MEAN trims the transitive <sys/stat.h> that mingw's | |
| 68 | + * <io.h> used to drag in, so include it by name - the stat/lstat | |
| 69 | + * helpers below are shared by both platforms. */ | |
| 70 | +# include <sys/stat.h> | |
| 71 | +# include <sys/types.h> | |
| 67 | 72 | # define SEP '\\' |
| 68 | 73 | # define PATH_SPLITCH '\\' |
| 69 | 74 | #else |
| 70 | 75 |
| index 4a5452b..17da9c3 100644 | index 4a5452b..17da9c3 100644 | ||
| --- a/plugin.json | --- a/plugin.json | ||
| +++ b/plugin.json | +++ b/plugin.json | ||
| @@ -19,5 +19,11 @@ | @@ -19,5 +19,11 @@ | ||
| 19 | "no_network" | 19 | "no_network" |
| 20 | ], | 20 | ], |
| 21 | "trust_notice": "Executes native C code on your node. This plugin CAN CREATE, OVERWRITE, EDIT, MOVE AND DELETE FILES inside the directories you put on its allowlist (~/.scorpiox/connectors/plugin_filesystem/roots.json, or FS_ALLOWED_ROOTS; defaulting to /workspace and $HOME when unconfigured). Writes go through a temp file plus rename so a crash cannot leave a half-written file, move_file refuses to overwrite, and edit_file writes nothing if any edit fails to match. Everything outside the allowlist is refused after symlink resolution. It has no popen, no system, no socket and makes zero outbound network requests.", | 21 | "trust_notice": "Executes native C code on your node. This plugin CAN CREATE, OVERWRITE, EDIT, MOVE AND DELETE FILES inside the directories you put on its allowlist (~/.scorpiox/connectors/plugin_filesystem/roots.json, or FS_ALLOWED_ROOTS; defaulting to /workspace and $HOME when unconfigured). Writes go through a temp file plus rename so a crash cannot leave a half-written file, move_file refuses to overwrite, and edit_file writes nothing if any edit fails to match. Everything outside the allowlist is refused after symlink resolution. It has no popen, no system, no socket and makes zero outbound network requests.", |
| 22 | - "homepage": "https://plugingit.scorpiox.net/repo?name=scorpiox-bot-plugin-filesystem" | 22 | + "homepage": "https://plugingit.scorpiox.net/repo?name=scorpiox-bot-plugin-filesystem", |
| 23 | + "cflags": [ | ||
| 24 | + "-std=c99", | ||
| 25 | + "-pedantic", | ||
| 26 | + "-Wno-overlength-strings", | ||
| 27 | + "-Ivendor/yyjson" | ||
| 28 | + ] | ||
| 23 | } | 29 | } |
| index 58a00b8..e003492 100644 | index 58a00b8..e003492 100644 | ||
| --- a/src/plugin_filesystem.c | --- a/src/plugin_filesystem.c | ||
| +++ b/src/plugin_filesystem.c | +++ b/src/plugin_filesystem.c | ||
| @@ -64,6 +64,11 @@ | @@ -64,6 +64,11 @@ | ||
| 64 | # include <direct.h> | 64 | # include <direct.h> |
| 65 | # include <io.h> | 65 | # include <io.h> |
| 66 | # include <fcntl.h> | 66 | # include <fcntl.h> |
| 67 | + /* WIN32_LEAN_AND_MEAN trims the transitive <sys/stat.h> that mingw's | ||
| 68 | + * <io.h> used to drag in, so include it by name - the stat/lstat | ||
| 69 | + * helpers below are shared by both platforms. */ | ||
| 70 | +# include <sys/stat.h> | ||
| 71 | +# include <sys/types.h> | ||
| 67 | # define SEP '\\' | 72 | # define SEP '\\' |
| 68 | # define PATH_SPLITCH '\\' | 73 | # define PATH_SPLITCH '\\' |
| 69 | #else | 74 | #else |
| 70 | 75 |