mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-03 13:20:28 -05:00
Initial support for symlinks. Only in *nix.
This commit is contained in:
parent
4e7957ff73
commit
399f181a57
13 changed files with 679 additions and 139 deletions
3
handle.c
3
handle.c
|
|
@ -195,9 +195,10 @@ int handle_open(struct snapraid_handle* handle, struct snapraid_file* file)
|
|||
return 0;
|
||||
}
|
||||
|
||||
pathprint(handle->path, sizeof(handle->path), "%s%s", handle->disk->dir, file->sub);
|
||||
|
||||
/* opening in sequential mode in Windows */
|
||||
/* do not follow links to ensure to open the real file */
|
||||
pathprint(handle->path, sizeof(handle->path), "%s%s", handle->disk->dir, file->sub);
|
||||
handle->f = open(handle->path, O_RDONLY | O_BINARY | O_SEQUENTIAL | O_NOFOLLOW);
|
||||
|
||||
if (handle->f == -1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue