resolvconf-compat: make "-u" operation a NOP
authorLennart Poettering <lennart@poettering.net>
Wed, 29 Sep 2021 08:48:24 +0000 (10:48 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 12 Oct 2021 16:01:30 +0000 (18:01 +0200)
commit4f67f7483e3d8997c9e5414afd88d259aa46fe7f
treeed8d745eafd981cc982d2e33d84454d82b292bb5
parent0eca6f7ad3c71b2bb09458a81e64071ca5254b0c
resolvconf-compat: make "-u" operation a NOP

According to the various man pages of "resolvconf" the -u switch is for:

"-u Just run the update scripts (if updating is enabled)."

"-u Force resolvconf to update all its subscribers. resolvconf does not
    update the subscribers when adding a resolv.conf that matches what
    it already has for that interface."

We have no "subscribers", we ourselves are the only "subscriber" we
support. Hence it's probably better to ignore such a request and make it
a NOP, then to fail.

Fixes: #20748
(cherry picked from commit bee07a399572e0d60600c040a84099ecb418ed33)
(cherry picked from commit 4fe53426991e829c0add9378d91f3677a23076fd)
src/resolve/resolvconf-compat.c