]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nextboot: check unlink, but only warn on !ENOENT
authorWarner Losh <imp@FreeBSD.org>
Thu, 22 Feb 2024 03:10:45 +0000 (20:10 -0700)
committerWarner Losh <imp@FreeBSD.org>
Thu, 22 Feb 2024 03:10:45 +0000 (20:10 -0700)
commitbad90cb4f6860657917a485893ee790545286018
treef423bb4c20dce2cf236c01fda37abcbdec3b4339
parent99fa799a19abeb70b1034f65407c276b64709bdc
nextboot: check unlink, but only warn on !ENOENT

Emulate rm -f from the nextboot.sh script: Report all errors, except
ENOENT. This problems show through, except the expected one when
nextboot.conf isn't there.

Sponsored by: Netflix
Reviewed by: rew
Differential Revision: https://reviews.freebsd.org/D44013
sbin/reboot/reboot.c