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: [email protected]
          Reporter: [email protected]

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.

Reply via email to