resolvconf-compat: make "-u" operation a NOP
authorLennart Poettering <lennart@poettering.net>
Wed, 29 Sep 2021 08:48:24 +0000 (10:48 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 29 Sep 2021 12:36:47 +0000 (14:36 +0200)
commitbee07a399572e0d60600c040a84099ecb418ed33
tree860e8d9d684541b4fba111165e97a47cd12558b4
parent92fc611cac3cf251e12513ea9fab4a449fde34f6
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
src/resolve/resolvconf-compat.c