summaryrefslogtreecommitdiff
path: root/test/test-functions
diff options
context:
space:
mode:
authorNathaniel Chen <nathaniel.chen@intel.com>2013-03-05 11:46:34 -0800
committerLennart Poettering <lennart@poettering.net>2013-03-05 20:54:05 +0100
commitebe5d6d0d05d1f17c96315c42f8d9bcf5e13ba9d (patch)
treeef828ac5317569996c12d24ed21e8fb1592e02e8 /test/test-functions
parentd47c78be4a2acbb631a26af11b7ce2ef57f55996 (diff)
hostnamed: allow more special characters in pretty hostname
this addresses the bug at: https://bugs.freedesktop.org/show_bug.cgi?id=59311 https://bugzilla.redhat.com/show_bug.cgi?id=895299 hostnamectl is supposed to allow a range of special characters for the 'pretty' hostname: $ hostnamectl set-hostname --pretty "Nathaniels Desktop !@#$%" ..however, it rejects apostrophes, double quotes, and backslashes. The manual for hostnamectl suggests that this should be allowed. It makes sense to reject \0, \n, etc. pretty_string_is_safe() is the same as string_is_safe(), but allows more special characters.
Diffstat (limited to 'test/test-functions')
0 files changed, 0 insertions, 0 deletions