On Mittwoch, 31. März 2021 11:58:18 CEST Carlos E. R. wrote:
On 31/03/2021 11.42, mh@mike.franken.de wrote:
On Dienstag, 30. März 2021 22:26:53 CEST Carlos E. R. wrote:
On 30/03/2021 22.07, mh@mike.franken.de wrote:
On Dienstag, 30. März 2021 21:26:47 CEST Andrei Borzenkov wrote:
On 30.03.2021 21:21, mh@mike.franken.de wrote: [...] He wrote:
"rpmsave/rpmnew are created if file changed in package *and* was modified on disk"
He also said "files in /usr/etc are not intended to be editable, so these files are unconditionally overwritten on update - this is absolutely correct and expected behavior."
I understand you edited "/usr/etc/X11/xdm/Xsetup", so that file will never get the rpmsave/rpmnew mechanism.
I edited /etc/X11/xdm/Xsetup in the first place - until the new behaviour using /usr/etc was introduced. Afterwards I edited /usr/etc/X11/xdm/Xsetup. I am not sure, though, if /etc/X11/xdm/Xsetup has been overwritten in the past, too.
If I edit an script from an rpm package, I have no expectations that it will be respected by updates. And that's what you did.
So I understand: If the file is modified on disk only, it will be overwritten by the unmodified file from the package and no rpmsave/rpmnew file is created. Did I get that wrong?
Yes, you got it wrong. He said it should not be overwritten by the package if the file in the package doesn't change.
Ok, the file in /usr/etc/X11/xdm has been overwritten, but I don't know if it has been changed. Thx for clarificaton. Bye. Michael.