mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-25 17:36:26 -05:00
Removes support to symlink to dirs in Windows. They are different than symlinks to files.
This commit is contained in:
parent
6da21cdbd9
commit
3cd7b4ee03
8 changed files with 68 additions and 48 deletions
4
elem.c
4
elem.c
|
|
@ -391,14 +391,14 @@ int file_path_compare(const void* void_arg, const void* void_data)
|
|||
return strcmp(arg, file->sub);
|
||||
}
|
||||
|
||||
struct snapraid_link* link_alloc(const char* sub, const char* linkto, int is_hardlink)
|
||||
struct snapraid_link* link_alloc(const char* sub, const char* linkto, unsigned link_flag)
|
||||
{
|
||||
struct snapraid_link* link;
|
||||
|
||||
link = malloc_nofail(sizeof(struct snapraid_link));
|
||||
pathcpy(link->sub, sizeof(link->sub), sub);
|
||||
pathcpy(link->linkto, sizeof(link->linkto), linkto);
|
||||
link->flag = is_hardlink != 0 ? FILE_IS_HARDLINK : 0;
|
||||
link->flag = link_flag;
|
||||
|
||||
return link;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue