Skip to content

Commit 6b629cc

Browse files
committed
Remove unnecessary fd test
1 parent 6fbaf05 commit 6b629cc

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/library/policy.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -974,14 +974,6 @@ int reply_event_init(int fd)
974974
return 1;
975975
}
976976

977-
if (fcntl(fd, F_GETFD) < 0) {
978-
msg(LOG_ERR,
979-
"Cannot initialize fanotify response info support: "
980-
"bad fd (%s)", strerror(errno));
981-
response_info_supported = 0;
982-
return 1;
983-
}
984-
985977
response_info_supported = test_info_api(fd);
986978
#else
987979
(void)fd;

0 commit comments

Comments
 (0)