Skip to content

Commit

Permalink
Finalize libcap-ng-0.8.5 release
Browse files Browse the repository at this point in the history
  • Loading branch information
stevegrubb committed Apr 9, 2024
1 parent bd4cfe6 commit f5d3970
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libcap-ng.spec
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@ make check
%attr(0644,root,root) %{_mandir}/man8/*

%changelog
* Wed Dec 20 2023 Steve Grubb <[email protected]> 0.8.5-1
* Tue Apr 09 2024 Steve Grubb <[email protected]> 0.8.5-1
- New upstream release

8 changes: 7 additions & 1 deletion utils/netcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,15 @@ static int collect_process_info(void)
fprintf(stderr, "Out of memory\n");
continue;
}
} else
} else {
text = capng_print_caps_text(CAPNG_PRINT_BUFFER,
CAPNG_PERMITTED);
if (text == NULL) {
fprintf(stderr, "Out of memory doing pid %d\n",
pid);
continue;
}
}

// Get the effective uid
snprintf(buf, 32, "/proc/%d/status", pid);
Expand Down

0 comments on commit f5d3970

Please sign in to comment.