mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
More clear check for overflow.
This commit is contained in:
parent
a1e7786dd5
commit
470dc9d47e
1 changed files with 1 additions and 1 deletions
2
check.c
2
check.c
|
|
@ -1093,7 +1093,7 @@ static int state_check_process(struct snapraid_state* state, int check, int fix,
|
|||
fprintf(stderr, "Error reading symlink '%s'. %s.\n", path, strerror(errno));
|
||||
fprintf(stderr, "symlinkerror:%s:%s: Symlink read error\n", disk->name, link->sub);
|
||||
++error;
|
||||
} else if (ret == sizeof(linkto)) {
|
||||
} else if (ret >= PATH_MAX) {
|
||||
failed = 1;
|
||||
|
||||
fprintf(stderr, "Error reading symlink '%s'. Symlink too long.\n", path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue