mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-24 17:06:25 -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
check.c
4
check.c
|
|
@ -1109,7 +1109,7 @@ static int state_check_process(struct snapraid_state* state, int check, int fix,
|
|||
continue;
|
||||
}
|
||||
|
||||
if (link_is_hardlink(link)) {
|
||||
if (link_flag_has(link, FILE_IS_HARDLINK)) {
|
||||
/* stat the link */
|
||||
pathprint(path, sizeof(path), "%s%s", disk->dir, link->sub);
|
||||
ret = stat(path, &st);
|
||||
|
|
@ -1196,7 +1196,7 @@ static int state_check_process(struct snapraid_state* state, int check, int fix,
|
|||
}
|
||||
|
||||
/* create it */
|
||||
if (link_is_hardlink(link)) {
|
||||
if (link_flag_has(link, FILE_IS_HARDLINK)) {
|
||||
ret = hardlink(pathto, path);
|
||||
if (ret != 0) {
|
||||
fprintf(stderr, "Error writing hardlink '%s'. %s.\n", path, strerror(errno));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue