Systemd/src/hostname
Martin Pitt 139e533628 hostname: Allow comments in /etc/hostname
The hostname(1) tool allows comments in /etc/hostname. Introduce a new
read_hostname_config() in hostname-util which reads a hostname configuration
file like /etc/hostname, strips out comments, whitespace, and cleans the
hostname. Use it in hostname-setup.c and hostnamed and remove duplicated code.

Update hostname manpage. Add tests.

https://launchpad.net/bugs/1053048
2015-05-19 12:18:08 +02:00
..
.gitignore login: move seat udev rules to login subdir 2012-01-22 18:32:13 +01:00
hostnamectl.c util: split all hostname related calls into hostname-util.c 2015-05-18 17:10:07 +02:00
hostnamed.c hostname: Allow comments in /etc/hostname 2015-05-19 12:18:08 +02:00
Makefile build-sys: add stub makefiles to subdirs 2012-01-05 16:29:21 +01:00
org.freedesktop.hostname1.conf relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00
org.freedesktop.hostname1.policy.in polkit: add "imply" rules to a number of polkit actions 2012-12-31 21:24:26 +01:00
org.freedesktop.hostname1.service relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00