Skip to content

Commit

Permalink
fix: disable symlink on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nalgeon committed Jun 15, 2023
1 parent 2d088b8 commit 0a06776
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/fileio/legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,14 +357,15 @@ static int makeDirectory(sqlite3_context* ctx, const char* path, mode_t mode) {
* Creates a symbolic link named `dst`, pointing to `src`.
*/
static int createSymlink(sqlite3_context* ctx, const char* src, const char* dst) {
#if defined(_WIN32) || defined(WIN32)
#ifdef _WIN32
return 0;
#endif
#else
int res = symlink(src, dst) < 0;
if (res < 0) {
return 1;
}
return 0;
#endif
}

/*
Expand Down

0 comments on commit 0a06776

Please sign in to comment.