Page MenuHomeFreeBSD

etcupdate: Do not ignore empty files.
ClosedPublic

Authored by delphij on Jan 29 2026, 3:32 AM.
Tags
None
Referenced Files
F156697037: D54935.id171190.diff
Fri, May 15, 6:19 PM
F156694167: D54935.id170671.diff
Fri, May 15, 5:52 PM
F156655884: D54935.id170824.diff
Fri, May 15, 11:04 AM
F156651745: D54935.id171190.diff
Fri, May 15, 10:13 AM
Unknown Object (File)
Thu, May 14, 2:44 PM
Unknown Object (File)
Thu, May 14, 7:49 AM
Unknown Object (File)
Thu, May 14, 7:36 AM
Unknown Object (File)
Wed, May 13, 8:23 PM
Subscribers

Details

Summary

PR: bin/292773
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 70202
Build 67085: arc lint + arc unit

Event Timeline

I'm not very familiar with etcupdate internals but this seems reasonable to me. OTOH I don't know what clutter the comment is referring to.

It'd be nice to add a regression test for this.

usr.sbin/etcupdate/etcupdate.sh
250

Presumably this comment needs to be updated too?

Add regression test for installing empty files.

Verified with the change reverted and applied.

delphij added inline comments.
usr.sbin/etcupdate/etcupdate.sh
250

I think the comment is still true (we still ignore generated files, and comment didn't explicitly say empty files)...

Seems ok to me. You might give a few days for other reviewers to chime in.

This revision is now accepted and ready to land.Feb 2 2026, 2:11 PM
This revision was automatically updated to reflect the committed changes.
delphij marked an inline comment as done.

It used to be that make distribution generated a lot of empty files and they would indeed clutter the output of etcupdate diff. Did you look at the output of etcupdate diff before and after this change? And/or did you see if there are empty files in /var/db/etcupdate/current?