@@ -374,9 +374,9 @@ int32_t sinsp_filter_check_fd::parse_field_name(std::string_view val,
374374 return sinsp_filter_check::parse_field_name (val, alloc_state, needed_for_filtering);
375375}
376376
377- bool sinsp_filter_check_fd::extract_fdname_from_creator (sinsp_evt *evt,
378- bool sanitize_strings,
379- bool fd_nameraw) {
377+ bool sinsp_filter_check_fd::extract_fdname_from_event (sinsp_evt *evt,
378+ bool sanitize_strings,
379+ bool fd_nameraw) {
380380 const char *resolved_argstr;
381381 uint16_t etype = evt->get_type ();
382382
@@ -537,7 +537,7 @@ uint8_t *sinsp_filter_check_fd::extract_single(sinsp_evt *evt,
537537 int64_t retval = evt->get_param (0 )->as <int64_t >();
538538 // this is a weird behavior, see the `net_connect_exit_event_fails` test for more info
539539 if (retval < 0 ) {
540- if (!extract_fdname_from_creator (evt, sanitize_strings)) {
540+ if (!extract_fdname_from_event (evt, sanitize_strings)) {
541541 return NULL ;
542542 }
543543 if (m_field_id == TYPE_CONTAINERNAME) {
@@ -549,7 +549,7 @@ uint8_t *sinsp_filter_check_fd::extract_single(sinsp_evt *evt,
549549 }
550550
551551 if (m_fdinfo == NULL ) {
552- if (!extract_fdname_from_creator (evt, sanitize_strings)) {
552+ if (!extract_fdname_from_event (evt, sanitize_strings)) {
553553 return NULL ;
554554 }
555555 } else {
@@ -578,7 +578,7 @@ uint8_t *sinsp_filter_check_fd::extract_single(sinsp_evt *evt,
578578 case TYPE_DIRECTORY:
579579 case TYPE_CONTAINERDIRECTORY: {
580580 if (m_fdinfo == NULL ) {
581- if (!extract_fdname_from_creator (evt, sanitize_strings)) {
581+ if (!extract_fdname_from_event (evt, sanitize_strings)) {
582582 return NULL ;
583583 }
584584 } else if (!(m_fdinfo->is_file () || m_fdinfo->is_directory ())) {
@@ -1226,7 +1226,7 @@ uint8_t *sinsp_filter_check_fd::extract_single(sinsp_evt *evt,
12261226 } break ;
12271227 case TYPE_FDNAMERAW: {
12281228 if (m_fdinfo == NULL ) {
1229- if (!extract_fdname_from_creator (evt, sanitize_strings, true )) {
1229+ if (!extract_fdname_from_event (evt, sanitize_strings, true )) {
12301230 return NULL ;
12311231 }
12321232 } else {
0 commit comments