hostnamectl: rework pretty hostname validation (#3985)
authorLennart Poettering <lennart@poettering.net>
Fri, 19 Aug 2016 01:16:16 +0000 (03:16 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 19 Aug 2016 01:16:16 +0000 (21:16 -0400)
commit2ae0858e6c12018def32921e5d732395c74c4379
tree35addc58ab98539792c03c20d288a1c6e2c1916d
parent622a0f628cee51851ad00856f9efddedf0799edb
hostnamectl: rework pretty hostname validation (#3985)

Rework 17eb9a9ddba3f03fcba33445c1c1eedeb948da04 a bit.

Let's make sure we don't clobber the input parameter args[1], following our
coding style to not clobber parameters unless explicitly indicated. (in
particular, as we don't want to have our changes appear in the command line
shown in "ps"...)

No functional change.
src/basic/hostname-util.c
src/hostname/hostnamectl.c