#1074560 ucf: Symlinks followed before looking up dpkg-divert

Package:
ucf
Source:
ucf
Submitter:
Hristo Venev
Date:
2025-02-23 16:51:02 UTC
Severity:
normal
Tags:
#1074560#5
Date:
2024-06-30 22:28:53 UTC
From:
To:
Package: ucf
Version: 3.0043+nmu1
Severity: important
X-Debbugs-Cc: hristo@venev.name

Just to be clear, here is why the current behavior makes no sense:

0. Suppose `/etc/configfile` is a file managed by `some-package` using
ucf.
1. Suppose `/etc/configfile` is diverted by `my-config` to `/my-
diverted/etc/configfile`.
2. Suppose `/etc/configfile` belongs to `my-config` and is a symlink to
`/my-config/etc/configfile`.

Then `ucf`, when invoked by `some-package`, should update `/my-
diverted/etc/configfile` (which is where the original configuration
provided by `some-package` resides), not
`/my-config/etc/configfile` (where the override provided by `my-config`
resides).

#1074560#10
Date:
2024-06-30 22:50:51 UTC
From:
To:
merge 1074560 1059746