Lines 650-656
Link Here
|
650 |
memset(&prs, 0, sizeof(prs)); |
650 |
memset(&prs, 0, sizeof(prs)); |
651 |
strlcpy(prs.path, anchorname, sizeof(prs.path)); |
651 |
strlcpy(prs.path, anchorname, sizeof(prs.path)); |
652 |
if (ioctl(dev, DIOCGETRULESETS, &prs)) { |
652 |
if (ioctl(dev, DIOCGETRULESETS, &prs)) { |
653 |
if (errno == EINVAL) |
653 |
if (errno == ENOENT) |
654 |
return (0); |
654 |
return (0); |
655 |
else |
655 |
else |
656 |
return (1); |
656 |
return (1); |
Lines 716-722
Link Here
|
716 |
goto no_mem; |
716 |
goto no_mem; |
717 |
snprintf(prs->path, sizeof(prs->path), "%s/%s", an, rs); |
717 |
snprintf(prs->path, sizeof(prs->path), "%s/%s", an, rs); |
718 |
if (ioctl(dev, DIOCGETRULESETS, prs)) { |
718 |
if (ioctl(dev, DIOCGETRULESETS, prs)) { |
719 |
if (errno != EINVAL) |
719 |
if (errno != ENOENT) |
720 |
goto cleanup; |
720 |
goto cleanup; |
721 |
errno = 0; |
721 |
errno = 0; |
722 |
} else { |
722 |
} else { |