chiark / gitweb /
hostnamectl: rework pretty hostname validation (#3985)
authorLennart Poettering <lennart@poettering.net>
Fri, 19 Aug 2016 01:16:16 +0000 (03:16 +0200)
committerSven Eden <yamakuzure@gmx.net>
Wed, 5 Jul 2017 06:50:51 +0000 (08:50 +0200)
commit92842665f9dc63bc7f1671bed792a8e58014f952
treed068a9ac2a24be848a73897aafd5a27d7de93ed6
parent2613a7d715f38d766dc2998aa4e704494f2a58ea
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