environment: Fix setting writable? on networking related files

* guix/scripts/environment.scm (launch-environment/container): Include the
  file name in the call to string=? when deciding if the file should be
  writable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Christopher Baines 2017-01-27 06:26:30 +00:00 committed by Ludovic Courtès
parent 83421fc744
commit c003546b0c
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 2 additions and 1 deletions

View File

@ -421,7 +421,8 @@ host file systems to mount inside the container."
;; read-only within the ;; read-only within the
;; container. ;; container.
(writable? (writable?
(string=? "/etc/resolv.conf"))))) (string=? file
"/etc/resolv.conf")))))
%network-configuration-files) %network-configuration-files)
'()) '())
;; Mappings for the union closure of all inputs. ;; Mappings for the union closure of all inputs.