Page MenuHomeFreeBSD

Prevent savecore from reading bounds from the current directory.
ClosedPublic

Authored by silby on Feb 15 2018, 7:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 9 2024, 2:40 PM
Unknown Object (File)
Mar 9 2024, 2:40 PM
Unknown Object (File)
Mar 9 2024, 2:40 PM
Unknown Object (File)
Mar 9 2024, 2:40 PM
Unknown Object (File)
Mar 9 2024, 2:14 PM
Unknown Object (File)
Jan 19 2024, 4:45 PM
Unknown Object (File)
Dec 20 2023, 5:52 AM
Unknown Object (File)
Dec 7 2023, 3:20 PM
Subscribers

Details

Summary

Prevent savecore from reading bounds from the current directory.

Rev 244218 removed the requirement that you provide a dump
directory when checking if there is a coredump ready to be written.
That had the side-effect of causing the bounds file to be read
from the current working directory instead of the dump directory.
As the bounds file is irrelevant when just checking, the simplest
fix is to not read the bounds file when checking.

Test Plan

Confirm that savecore is still able to check for core files.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj added inline comments.
sbin/savecore/savecore.c
180 ↗(On Diff #39335)

Style: parens around the return value.

This revision is now accepted and ready to land.Feb 15 2018, 3:03 PM
This revision now requires review to proceed.Feb 16 2018, 12:21 AM
This revision is now accepted and ready to land.Feb 16 2018, 12:35 AM
This revision was automatically updated to reflect the committed changes.