system: 'hosts-file' is now a file-like object.
authorLudovic Courtès <ludo@gnu.org>
Fri, 5 Jun 2015 20:41:55 +0000 (22:41 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 5 Jun 2015 20:41:55 +0000 (22:41 +0200)
commit24e02c28fbf2b0efbc2fd6cdcd770037a6cff7e3
treeb4541b9b8e4e28b5fbe6f060895e94f7fbb01be2
parent847658395e399d6d4ef21a247dbad02a9c921400
system: 'hosts-file' is now a file-like object.

Partly fixes <http://bugs.gnu.org/20720>.
Reported by Alex Kost <alezost@gmail.com>.

* gnu/system.scm (default-/etc/hosts): Change 'text-file' to 'plain-file'.
  (maybe-file->monadic): New procedure.
  (operating-system-etc-directory): Use it.
* doc/guix.texi (operating-system Reference, Networking Services): Adjust
  accordingly.
doc/guix.texi
gnu/system.scm