Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 2026 03:08:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 292773] etcupdate: empty files are silently ignored
Message-ID:  <bug-292773-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292773

            Bug ID: 292773
           Summary: etcupdate: empty files are silently ignored
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: delphij@FreeBSD.org

Created attachment 267565
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=267565&action=edit
Proposed patch

I was trying to install an empty /etc/cron.deny file and it seems that the file
was silently ignored by etcupdate(8).

Looking at the code I found that:

```
        # Remove empty files.  These just clutter the output of 'diff'.
        (cd $1 && find . -type f -size 0 -delete -print >> $metatmp) || \
            return 1

```

However, this seems to be doing more harm than good, for example /etc/dumpdates
will never get installed (and should).

Can we just remove the code block?

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-292773-227>